summaryrefslogtreecommitdiffstats
path: root/editor/editor_data.cpp
diff options
context:
space:
mode:
authorajreckof <tbonhoure@ymail.com>2024-04-07 03:49:43 +0200
committerajreckof <tbonhoure@ymail.com>2024-04-07 03:49:43 +0200
commit609559c074478be839ca4e09a3bd45341a7c10a9 (patch)
tree3c73c14bf10c7b0314a830bb95f66aece95ed309 /editor/editor_data.cpp
parente5b4ef8e9522e950033cbece39a31a4a76da19c1 (diff)
downloadredot-engine-609559c074478be839ca4e09a3bd45341a7c10a9.tar.gz
Fix strange visual bug with camera and external change.
Diffstat (limited to 'editor/editor_data.cpp')
-rw-r--r--editor/editor_data.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp
index 6ab29c1850..72225fd454 100644
--- a/editor/editor_data.cpp
+++ b/editor/editor_data.cpp
@@ -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;