Skip to content

Commit

Permalink
Merge pull request #32908 from Nehluxhes/node_update_twice
Browse files Browse the repository at this point in the history
Remove duplicate displayed node update call
  • Loading branch information
akien-mga authored Jul 21, 2020
2 parents 22ed721 + c85d04a commit 60fab23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions editor/scene_tree_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,6 @@ void SceneTreeDock::_node_selected() {
Node *node = scene_tree->get_selected();

if (!node) {
editor->push_item(nullptr);
return;
}

Expand Down Expand Up @@ -1902,11 +1901,10 @@ void SceneTreeDock::_selection_changed() {
if (selection_size > 1) {
//automatically turn on multi-edit
_tool_selected(TOOL_MULTI_EDIT);
} else if (selection_size == 1) {
editor->push_item(EditorNode::get_singleton()->get_editor_selection()->get_selected_node_list()[0]);
} else {
} else if (selection_size == 0) {
editor->push_item(nullptr);
}

_update_script_button();
}

Expand Down

0 comments on commit 60fab23

Please sign in to comment.