Merge pull request #87743 from WhalesState/camera2d

Fix `Camera2D` is enabled when dragging scene files to the `CanvasItemEditor`
This commit is contained in:
Rémi Verschelde 2024-02-19 00:07:57 +01:00
commit 0f0515a75f
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -2506,7 +2506,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