diff options
-rw-r--r-- | scene/main/scene_main_loop.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |