1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Fix some invalid plugin edit calls

This commit is contained in:
kobewi
2023-06-11 22:11:25 +02:00
parent 37d1dfef9d
commit 366c9678ca
4 changed files with 6 additions and 10 deletions

View File

@@ -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() {
}