mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix strange visual bug with camera and external change.
This commit is contained in:
parent
e5b4ef8e95
commit
609559c074
2 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue