Fix is_node_being_edited() when not building tools

Fixes #3213.
Superseded #3242.
This commit is contained in:
Rémi Verschelde 2016-01-05 16:02:59 +01:00
parent afaa57be30
commit e0b91c701c

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 {