Fix is_node_being_edited() when not building tools
Fixes #3213. Superseded #3242.
This commit is contained in:
parent
afaa57be30
commit
e0b91c701c
1 changed files with 4 additions and 0 deletions
|
@ -621,7 +621,11 @@ void SceneTree::set_editor_hint(bool p_enabled) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SceneTree::is_node_being_edited(const Node* p_node) const {
|
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);
|
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 {
|
bool SceneTree::is_editor_hint() const {
|
||||||
|
|
Loading…
Reference in a new issue