From 1ef9b8645c1e1bc595570f860dcff99eb66cb77e Mon Sep 17 00:00:00 2001 From: Aitor Cereceto Date: Thu, 10 Jun 2021 11:40:17 +0200 Subject: [PATCH] [49451] fix: Control _selection_changed from Multiple Selection --- 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 8d6b7f33897..8d59b478baf 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -2059,6 +2059,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();