diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-01-05 16:02:59 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-01-05 16:02:59 +0100 |
commit | e0b91c701c313aebc58d6ff0e159f2127f54526b (patch) | |
tree | 1c26036c165dc8687209623ee72f81aa062227fc /scene/main/scene_main_loop.cpp | |
parent | afaa57be301e00d5e6a797846234b4790fbb1576 (diff) |
Fix is_node_being_edited() when not building tools
Fixes #3213.
Superseded #3242.
Diffstat (limited to 'scene/main/scene_main_loop.cpp')
-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 { |