diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-25 13:38:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 13:38:08 +0200 |
commit | 7c7ce7dcd7430d8503d6f74bb49c68892bc31dca (patch) | |
tree | 172e5211446f4206d928a76e7eee6e8c706be819 /scene/resources | |
parent | 6a9115b983384f5dce341b22268dbc7f4a12f64e (diff) | |
parent | 8580f377a3d7d72c319e9e5489bcbe1678ad704b (diff) |
Merge pull request #60298 from reduz/scene-unique-paths
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/packed_scene.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp index b1c2702a1e..b991cb1abe 100644 --- a/scene/resources/packed_scene.cpp +++ b/scene/resources/packed_scene.cpp @@ -310,6 +310,9 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const { NODE_FROM_ID(owner, n.owner); if (owner) { node->_set_owner_nocheck(owner); + if (node->data.unique_name_in_owner) { + node->_acquire_unique_name_in_owner(); + } } } |