Fix strange visual bug with camera and external change.

This commit is contained in:
ajreckof 2024-04-07 03:49:43 +02:00
parent e5b4ef8e95
commit 609559c074
2 changed files with 4 additions and 1 deletions

View file

@ -722,6 +722,7 @@ bool EditorData::check_and_update_scene(int p_idx) {
new_scene->set_scene_file_path(edited_scene[p_idx].root->get_scene_file_path());
Node *old_root = edited_scene[p_idx].root;
edited_scene.write[p_idx].root = new_scene;
old_root->replace_by(new_scene, false, false);
memdelete(old_root);
edited_scene.write[p_idx].selection = new_selection;