summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-15 15:07:52 +0200
committerGitHub <noreply@github.com>2021-06-15 15:07:52 +0200
commitbe787e140eb4b43a87fcd8fcca55c17738271bf6 (patch)
treeda4488a6757851f5cf5c73ad1fdb9829b04c50eb /editor
parent7efde449b2556cb16f93d0e8c66e94942700530e (diff)
parent1ef9b8645c1e1bc595570f860dcff99eb66cb77e (diff)
Merge pull request #49482 from unsignedFoo/49451-fix-selection-changed-multinodeeditor
Fix SceneTreeDock::_selection_changed to handle to single selection from Multiple Selection
Diffstat (limited to 'editor')
-rw-r--r--editor/scene_tree_dock.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp
index 8d6b7f3389..8d59b478ba 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();