Fix node selection not handled correctly at launch

This commit is contained in:
kobewi 2023-07-03 14:43:15 +02:00
parent 46424488ed
commit 9379177286
2 changed files with 0 additions and 6 deletions

View File

@ -925,7 +925,6 @@ Dictionary EditorData::restore_edited_scene_state(EditorSelection *p_selection,
for (Node *E : es.selection) { for (Node *E : es.selection) {
p_selection->add_node(E); 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); set_editor_plugin_states(es.editor_states);
return es.custom_state; return es.custom_state;
@ -1350,10 +1349,6 @@ void EditorSelection::clear() {
node_list_changed = true; node_list_changed = true;
} }
void EditorSelection::cancel_update() {
changed = false;
}
EditorSelection::EditorSelection() { EditorSelection::EditorSelection() {
} }

View File

@ -312,7 +312,6 @@ public:
void update(); void update();
void clear(); void clear();
void cancel_update();
// Returns all the selected nodes. // Returns all the selected nodes.
TypedArray<Node> get_selected_nodes(); TypedArray<Node> get_selected_nodes();