diff options
author | kobewi <kobewi4e@gmail.com> | 2023-06-11 22:11:25 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-06-11 22:15:54 +0200 |
commit | 366c9678ca84d0060e455f90abf55793a98a82e9 (patch) | |
tree | 6fa6f63772b038eb8075c18965206fead1c90dcc /editor/editor_data.cpp | |
parent | 37d1dfef9d81aade27ab0c56fc6b6f12f6a08045 (diff) | |
download | redot-engine-366c9678ca84d0060e455f90abf55793a98a82e9.tar.gz |
Fix some invalid plugin edit calls
Diffstat (limited to 'editor/editor_data.cpp')
-rw-r--r-- | editor/editor_data.cpp | 5 |
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() { } |