Revert what needs to be reverted

This commit is contained in:
ajreckof
2024-04-09 18:07:07 +02:00
committed by 风青山
parent 41f6a683b6
commit 248e5bfba2
6 changed files with 30 additions and 89 deletions

View File

@@ -3674,9 +3674,7 @@ void EditorNode::set_edited_scene(Node *p_scene) {
if (old_edited_scene_root->get_parent() == scene_root) {
scene_root->remove_child(old_edited_scene_root);
}
if (old_edited_scene_root->is_connected("replacing_by", callable_mp(this, &EditorNode::set_edited_scene))) {
old_edited_scene_root->disconnect(SNAME("replacing_by"), callable_mp(this, &EditorNode::set_edited_scene));
}
old_edited_scene_root->disconnect(SNAME("replacing_by"), callable_mp(this, &EditorNode::set_edited_scene));
}
get_editor_data().set_edited_scene_root(p_scene);