Fix node selection not handled correctly at launch
This commit is contained in:
parent
46424488ed
commit
9379177286
|
@ -925,7 +925,6 @@ 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;
|
||||
|
@ -1350,10 +1349,6 @@ void EditorSelection::clear() {
|
|||
node_list_changed = true;
|
||||
}
|
||||
|
||||
void EditorSelection::cancel_update() {
|
||||
changed = false;
|
||||
}
|
||||
|
||||
EditorSelection::EditorSelection() {
|
||||
}
|
||||
|
||||
|
|
|
@ -312,7 +312,6 @@ public:
|
|||
|
||||
void update();
|
||||
void clear();
|
||||
void cancel_update();
|
||||
|
||||
// Returns all the selected nodes.
|
||||
TypedArray<Node> get_selected_nodes();
|
||||
|
|
Loading…
Reference in New Issue