summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorbinbitten <martinsjursen@gmail.com>2018-01-13 09:05:50 +0100
committerbinbitten <martinsjursen@gmail.com>2018-01-13 09:05:50 +0100
commit1e9fbcf36c8cec6549e6f2e650cc39f80dc5f808 (patch)
treeb9f89ec317e049fac37c707a6c0ce1678b0ea75c /editor
parent30d7943311cdf4efbc6794a52df0e298f5e6d975 (diff)
Fix clicking on sub-resources in a node's right-click menu
Diffstat (limited to 'editor')
-rw-r--r--editor/scene_tree_dock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp
index 98871d5193..41ee5ab286 100644
--- a/editor/scene_tree_dock.cpp
+++ b/editor/scene_tree_dock.cpp
@@ -2066,6 +2066,7 @@ SceneTreeDock::SceneTreeDock(EditorNode *p_editor, Node *p_scene_root, EditorSel
menu->connect("id_pressed", this, "_tool_selected");
menu_subresources = memnew(PopupMenu);
menu_subresources->set_name("Sub-Resources");
+ menu_subresources->connect("id_pressed", this, "_tool_selected");
menu->add_child(menu_subresources);
first_enter = true;
restore_script_editor_on_drag = false;