From 0772ff21e2eb7b1d1b9c8c0819eed4a48cc83e55 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sat, 19 Aug 2017 01:02:56 +0200 Subject: [PATCH] Removes editor_hint from SceneTree --- visual_script.cpp | 2 +- visual_script_func_nodes.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/visual_script.cpp b/visual_script.cpp index d1cf0f1..fd4ae9f 100644 --- a/visual_script.cpp +++ b/visual_script.cpp @@ -273,7 +273,7 @@ void VisualScript::_node_ports_changed(int p_id) { Function &func = functions[function]; Ref vsn = func.nodes[p_id].node; - if (OS::get_singleton()->get_main_loop() && OS::get_singleton()->get_main_loop()->cast_to() && OS::get_singleton()->get_main_loop()->cast_to()->is_editor_hint()) { + if (OS::get_singleton()->get_main_loop() && OS::get_singleton()->get_main_loop()->cast_to() && Engine::get_singleton()->is_editor_hint()) { vsn->validate_input_default_values(); //force validate default values when editing on editor } diff --git a/visual_script_func_nodes.cpp b/visual_script_func_nodes.cpp index 3c057cd..7992a4e 100644 --- a/visual_script_func_nodes.cpp +++ b/visual_script_func_nodes.cpp @@ -1164,7 +1164,7 @@ void VisualScriptPropertySet::_update_cache() { if (!OS::get_singleton()->get_main_loop()->cast_to()) return; - if (!OS::get_singleton()->get_main_loop()->cast_to()->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) {