From e0b91c701c313aebc58d6ff0e159f2127f54526b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 5 Jan 2016 16:02:59 +0100 Subject: Fix is_node_being_edited() when not building tools Fixes #3213. Superseded #3242. --- scene/main/scene_main_loop.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/main/scene_main_loop.cpp b/scene/main/scene_main_loop.cpp index f8585b93cf..a18eb1249f 100644 --- a/scene/main/scene_main_loop.cpp +++ b/scene/main/scene_main_loop.cpp @@ -621,7 +621,11 @@ void SceneTree::set_editor_hint(bool p_enabled) { } bool SceneTree::is_node_being_edited(const Node* p_node) const { +#ifdef TOOLS_ENABLED return editor_hint && edited_scene_root && edited_scene_root->is_a_parent_of(p_node); +#else + return false; +#endif } bool SceneTree::is_editor_hint() const { -- cgit v1.2.3