diff options
author | Mounir Tohami <53877170+WhalesState@users.noreply.github.com> | 2024-02-18 21:55:14 +0200 |
---|---|---|
committer | Mounir Tohami <53877170+WhalesState@users.noreply.github.com> | 2024-02-18 21:55:14 +0200 |
commit | 451b198c4006554cb0b95f4d849991c8ce208e8e (patch) | |
tree | 7ea005053cc55020e054ebf40917deede3a64ef4 | |
parent | 51991e20143a39e9ef0107163eaf283ca0a761ea (diff) | |
download | redot-engine-451b198c4006554cb0b95f4d849991c8ce208e8e.tar.gz |
Fix dragging scene files to the `CanvasItemEditor`
-rw-r--r-- | scene/main/node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index b78dfb2f2c..b3e43c4095 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -2437,7 +2437,7 @@ StringName Node::get_property_store_alias(const StringName &p_property) const { bool Node::is_part_of_edited_scene() const { return Engine::get_singleton()->is_editor_hint() && is_inside_tree() && get_tree()->get_edited_scene_root() && - (get_tree()->get_edited_scene_root() == this || get_tree()->get_edited_scene_root()->is_ancestor_of(this)); + get_tree()->get_edited_scene_root()->get_parent()->is_ancestor_of(this); } #endif |