From 93791772868f2d392d4956997d4d539e64828479 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 3 Jul 2023 14:43:15 +0200 Subject: [PATCH] Fix node selection not handled correctly at launch --- editor/editor_data.cpp | 5 ----- editor/editor_data.h | 1 - 2 files changed, 6 deletions(-) diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index be7376a5c49..af7163eec15 100644 --- a/editor/editor_data.cpp +++ b/editor/editor_data.cpp @@ -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() { } diff --git a/editor/editor_data.h b/editor/editor_data.h index 400cbb0536e..28fe13e537f 100644 --- a/editor/editor_data.h +++ b/editor/editor_data.h @@ -312,7 +312,6 @@ public: void update(); void clear(); - void cancel_update(); // Returns all the selected nodes. TypedArray get_selected_nodes();