Fix SceneTreeDock::_selection_changed
Now handles properly selecting one single node after select multiple nodes (MultiNodeEditor) Fixes #49451
This commit is contained in:
parent
d84d5a9665
commit
f0df770a56
@ -2045,6 +2045,8 @@ void SceneTreeDock::_selection_changed() {
|
|||||||
_tool_selected(TOOL_MULTI_EDIT);
|
_tool_selected(TOOL_MULTI_EDIT);
|
||||||
} else if (selection_size == 0) {
|
} else if (selection_size == 0) {
|
||||||
editor->push_item(nullptr);
|
editor->push_item(nullptr);
|
||||||
|
} else {
|
||||||
|
editor->push_item(EditorNode::get_singleton()->get_editor_selection()->get_selection().front()->value());
|
||||||
}
|
}
|
||||||
|
|
||||||
_update_script_button();
|
_update_script_button();
|
||||||
|
Loading…
Reference in New Issue
Block a user