[49451] fix: Control _selection_changed from Multiple Selection

This commit is contained in:
Aitor Cereceto 2021-06-10 11:40:17 +02:00
parent 9539e4e39e
commit 1ef9b8645c

View file

@ -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();