Merge pull request #22576 from DualMatrix/multi_edit_exit

Fixed inspector not going back to single-node when deselecting an item.
This commit is contained in:
Rémi Verschelde 2018-10-01 23:44:27 +02:00 committed by GitHub
commit 22c3995a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1591,6 +1591,10 @@ void SceneTreeDock::_selection_changed() {
if (selection_size > 1) { if (selection_size > 1) {
//automatically turn on multi-edit //automatically turn on multi-edit
_tool_selected(TOOL_MULTI_EDIT); _tool_selected(TOOL_MULTI_EDIT);
} else if (selection_size == 1) {
editor->push_item(EditorNode::get_singleton()->get_editor_selection()->get_selected_node_list()[0]);
} else {
editor->push_item(NULL);
} }
_update_script_button(); _update_script_button();
} }