1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix crash on recovered orphaned nodes.

This commit is contained in:
Saracen
2023-10-19 09:24:32 +01:00
parent f8818f85e6
commit a16cbf6869

View File

@@ -450,7 +450,7 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const {
} }
if (!old_parent_path.is_empty()) { 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) { if (n.owner >= 0) {