Merge pull request #83604 from SaracenOne/orphaned_node_crashfix

Fix crash on recovered orphaned nodes.
This commit is contained in:
Rémi Verschelde 2023-10-20 15:10:14 +02:00
commit 37d3cb1b04
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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) {