You've already forked godot
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:
@@ -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() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user