Merge pull request #3246 from godotengine/fix-notools-build
Fix is_node_being_edited() when not building tools
This commit is contained in:
commit
37971ef6b8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue