Merge pull request #3246 from godotengine/fix-notools-build

Fix is_node_being_edited() when not building tools
This commit is contained in:
Rémi Verschelde 2016-01-05 16:04:57 +01:00
commit 37971ef6b8
1 changed files with 4 additions and 0 deletions

View File

@ -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 {