You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Remove duplicate node update call
(cherry picked from commit c85d04a771)
This commit is contained in:
committed by
Rémi Verschelde
parent
98eb6e4af6
commit
5abc42c27e
@@ -1229,8 +1229,6 @@ void SceneTreeDock::_node_selected() {
|
||||
Node *node = scene_tree->get_selected();
|
||||
|
||||
if (!node) {
|
||||
|
||||
editor->push_item(NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1933,11 +1931,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(NULL);
|
||||
}
|
||||
|
||||
_update_script_button();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user