1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-01 16:38:31 +00:00

Fixed inspector not going back to single-node when deselecting an item.

Fixed inspector not going back to single-node when deselecting an item.
This commit is contained in:
DualMatrix
2018-10-01 02:00:07 +02:00
parent 9768ce5763
commit ec463b036a

View File

@@ -1587,6 +1587,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();
} }