Merge pull request #49482 from unsignedFoo/49451-fix-selection-changed-multinodeeditor
Fix SceneTreeDock::_selection_changed to handle to single selection from Multiple Selection
This commit is contained in:
commit
be787e140e
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue