Merge pull request #15654 from binbitten/fix-subres-click

Fix clicking on sub-resources in a node's right-click menu
This commit is contained in:
Rémi Verschelde 2018-01-13 10:29:22 +01:00 committed by GitHub
commit 5d6beba4cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;