From 1e9fbcf36c8cec6549e6f2e650cc39f80dc5f808 Mon Sep 17 00:00:00 2001 From: binbitten Date: Sat, 13 Jan 2018 09:05:50 +0100 Subject: Fix clicking on sub-resources in a node's right-click menu --- editor/scene_tree_dock.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor') 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; -- cgit v1.2.3