Skip to content

Commit

Permalink
Merge pull request #83604 from SaracenOne/orphaned_node_crashfix
Browse files Browse the repository at this point in the history
Fix crash on recovered orphaned nodes.
  • Loading branch information
akien-mga committed Oct 20, 2023
2 parents 34e3fa5 + a16cbf6 commit 37d3cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/packed_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const {
}

if (!old_parent_path.is_empty()) {
node->_set_name_nocheck(old_parent_path + "@" + node->get_name());
node->set_name(old_parent_path + "#" + node->get_name());
}

if (n.owner >= 0) {
Expand Down

0 comments on commit 37d3cb1

Please sign in to comment.