diff options
author | DualMatrix <piet.goris@gmail.com> | 2018-10-01 02:00:07 +0200 |
---|---|---|
committer | DualMatrix <piet.goris@gmail.com> | 2018-10-01 12:26:32 +0200 |
commit | ec463b036a46e3db6da9c299e48b4235b75a98c9 (patch) | |
tree | 708cb9d15a1d0571476676a5afff9748d7e3d13e /editor/scene_tree_dock.cpp | |
parent | 9768ce5763cd0fdd8c17c8f052e1c65036517768 (diff) |
Fixed inspector not going back to single-node when deselecting an item.
Fixed inspector not going back to single-node when deselecting an item.
Diffstat (limited to 'editor/scene_tree_dock.cpp')
-rw-r--r-- | editor/scene_tree_dock.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index ff6832177e..ec5dee4640 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1587,6 +1587,10 @@ void SceneTreeDock::_selection_changed() { if (selection_size > 1) { //automatically turn on 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(); } |