瀏覽代碼

Merge pull request #78980 from KoBeWi/demise_of_a_fix

Fix node selection not handled correctly at launch
Rémi Verschelde 2 年之前
父節點
當前提交
73a529df4c
共有 2 個文件被更改,包括 0 次插入6 次删除
  1. 0 5
      editor/editor_data.cpp
  2. 0 1
      editor/editor_data.h

+ 0 - 5
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() {
 }
 

+ 0 - 1
editor/editor_data.h

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