summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-07-16 23:43:24 +0200
committerGitHub <noreply@github.com>2016-07-16 23:43:24 +0200
commitb23889eb413f26cf0a3b94180fe11e86c08489f9 (patch)
tree63b66f799262288e562b1c8d4cb330412e130d68 /tools
parent6a5e11c075b6bc48d23267c03a66e613dee2bf55 (diff)
parent60f1656fff6242c02113534b4e592dcc8243be3e (diff)
Merge pull request #5743 from TheHX/issue-5740
Fix signals/group button on Scene dock
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/scene_tree_editor.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/editor/scene_tree_editor.cpp b/tools/editor/scene_tree_editor.cpp
index f174bc2f1b..cc11cbc562 100644
--- a/tools/editor/scene_tree_editor.cpp
+++ b/tools/editor/scene_tree_editor.cpp
@@ -260,13 +260,21 @@ void SceneTreeEditor::_cell_button_pressed(Object *p_item,int p_column,int p_id)
} else if (p_id==BUTTON_SIGNALS) {
- item->select(0);
+ editor_selection->clear();
+ editor_selection->add_node(n);
+
+ set_selected(n);
+
NodeDock::singleton->get_parent()->call("set_current_tab",NodeDock::singleton->get_index());
NodeDock::singleton->show_connections();
} else if (p_id==BUTTON_GROUPS) {
- item->select(0);
+ editor_selection->clear();
+ editor_selection->add_node(n);
+
+ set_selected(n);
+
NodeDock::singleton->get_parent()->call("set_current_tab",NodeDock::singleton->get_index());
NodeDock::singleton->show_groups();
}