summaryrefslogtreecommitdiffstats
path: root/editor/editor_data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_data.cpp')
-rw-r--r--editor/editor_data.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp
index 596a2dfac1..0a05186bf7 100644
--- a/editor/editor_data.cpp
+++ b/editor/editor_data.cpp
@@ -925,6 +925,7 @@ Dictionary EditorData::restore_edited_scene_state(EditorSelection *p_selection,
for (Node *E : es.selection) {
p_selection->add_node(E);
}
+ p_selection->cancel_update(); // Selection update results in redundant Node edit, so we cancel it.
set_editor_plugin_states(es.editor_states);
return es.custom_state;
@@ -1326,6 +1327,10 @@ void EditorSelection::clear() {
node_list_changed = true;
}
+void EditorSelection::cancel_update() {
+ changed = false;
+}
+
EditorSelection::EditorSelection() {
}