summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-01-05 16:04:57 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-01-05 16:04:57 +0100
commit37971ef6b8730a6fe9b26e8c379f399af7b22b69 (patch)
tree1c26036c165dc8687209623ee72f81aa062227fc /scene
parentafaa57be301e00d5e6a797846234b4790fbb1576 (diff)
parente0b91c701c313aebc58d6ff0e159f2127f54526b (diff)
Merge pull request #3246 from godotengine/fix-notools-build
Fix is_node_being_edited() when not building tools
Diffstat (limited to 'scene')
-rw-r--r--scene/main/scene_main_loop.cpp4
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 {