Merge pull request #32908 from Nehluxhes/node_update_twice
Remove duplicate displayed node update call
This commit is contained in:
commit
60fab23262
1 changed files with 2 additions and 4 deletions
|
@ -1217,7 +1217,6 @@ void SceneTreeDock::_node_selected() {
|
||||||
Node *node = scene_tree->get_selected();
|
Node *node = scene_tree->get_selected();
|
||||||
|
|
||||||
if (!node) {
|
if (!node) {
|
||||||
editor->push_item(nullptr);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1902,11 +1901,10 @@ void SceneTreeDock::_selection_changed() {
|
||||||
if (selection_size > 1) {
|
if (selection_size > 1) {
|
||||||
//automatically turn on multi-edit
|
//automatically turn on multi-edit
|
||||||
_tool_selected(TOOL_MULTI_EDIT);
|
_tool_selected(TOOL_MULTI_EDIT);
|
||||||
} else if (selection_size == 1) {
|
} else if (selection_size == 0) {
|
||||||
editor->push_item(EditorNode::get_singleton()->get_editor_selection()->get_selected_node_list()[0]);
|
|
||||||
} else {
|
|
||||||
editor->push_item(nullptr);
|
editor->push_item(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
_update_script_button();
|
_update_script_button();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue