summaryrefslogtreecommitdiff
path: root/editor/scene_tree_editor.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-23 18:07:25 +0200
committerGitHub <noreply@github.com>2018-08-23 18:07:25 +0200
commit2c5b4094072073b8b1d29936a0be83d43d088059 (patch)
treecca441e79cbf37a0e5a2bb8a22afff3c4cef22cc /editor/scene_tree_editor.cpp
parent6fb144792f63a393a9a2ae9914aeb81acc310816 (diff)
parentb7db3a69b8bc9c377fc3b301371b7af33407555c (diff)
Merge pull request #21316 from AlexHolly/fix-update-2d-view-scene-tree-selection
Fix update 2D view on selections in scene tree
Diffstat (limited to 'editor/scene_tree_editor.cpp')
-rw-r--r--editor/scene_tree_editor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp
index 88d614ab89..47db656017 100644
--- a/editor/scene_tree_editor.cpp
+++ b/editor/scene_tree_editor.cpp
@@ -521,8 +521,10 @@ void SceneTreeEditor::_selected_changed() {
void SceneTreeEditor::_deselect_items() {
// Clear currently elected items in scene tree dock.
- if (editor_selection)
+ if (editor_selection) {
editor_selection->clear();
+ emit_signal("node_changed");
+ }
}
void SceneTreeEditor::_cell_multi_selected(Object *p_object, int p_cell, bool p_selected) {
@@ -546,6 +548,7 @@ void SceneTreeEditor::_cell_multi_selected(Object *p_object, int p_cell, bool p_
} else {
editor_selection->remove_node(n);
}
+ emit_signal("node_changed");
}
void SceneTreeEditor::_notification(int p_what) {