diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-08-19 01:02:56 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-08-19 01:29:45 +0200 |
commit | 90b8a5b71ef79e0339826507c4b290f0c51b7cd2 (patch) | |
tree | 6f24bbc63ef9674687589f9ec9017e9fd09d266e /modules/visual_script/visual_script_func_nodes.cpp | |
parent | fd69604bd9dc743494a7818f25f384cc7f521b33 (diff) | |
download | redot-engine-90b8a5b71ef79e0339826507c4b290f0c51b7cd2.tar.gz |
Removes editor_hint from SceneTree
Diffstat (limited to 'modules/visual_script/visual_script_func_nodes.cpp')
-rw-r--r-- | modules/visual_script/visual_script_func_nodes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/visual_script/visual_script_func_nodes.cpp b/modules/visual_script/visual_script_func_nodes.cpp index 3c057cdbd5..7992a4e803 100644 --- a/modules/visual_script/visual_script_func_nodes.cpp +++ b/modules/visual_script/visual_script_func_nodes.cpp @@ -1164,7 +1164,7 @@ void VisualScriptPropertySet::_update_cache() { if (!OS::get_singleton()->get_main_loop()->cast_to<SceneTree>()) return; - if (!OS::get_singleton()->get_main_loop()->cast_to<SceneTree>()->is_editor_hint()) //only update cache if editor exists, it's pointless otherwise + if (!Engine::get_singleton()->is_editor_hint()) //only update cache if editor exists, it's pointless otherwise return; if (call_mode == CALL_MODE_BASIC_TYPE) { |