From f0df770a56f94b11ace9b99d422669766091b2f6 Mon Sep 17 00:00:00 2001 From: Aitor Cereceto Date: Thu, 10 Jun 2021 15:20:13 +0200 Subject: [PATCH] Fix SceneTreeDock::_selection_changed Now handles properly selecting one single node after select multiple nodes (MultiNodeEditor) Fixes #49451 --- editor/scene_tree_dock.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index aa356172ebf..06b10cecbb9 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -2045,6 +2045,8 @@ void SceneTreeDock::_selection_changed() { _tool_selected(TOOL_MULTI_EDIT); } else if (selection_size == 0) { editor->push_item(nullptr); + } else { + editor->push_item(EditorNode::get_singleton()->get_editor_selection()->get_selection().front()->value()); } _update_script_button();