diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-08-03 09:35:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-03 09:35:17 +0200 |
commit | a7f24080a24577b6d05039277cc66828cc9b9c7d (patch) | |
tree | 1301138464c1967838d4d725370f475faa67621b | |
parent | e0b560fb6f3002d98bfcb8f1b015ab19e96e3466 (diff) | |
parent | 3ffd75107d140046112a2e83bf7bce662d5a39b7 (diff) |
Merge pull request #51118 from SirQuartz/patch-39
Make the "View" menu in the 3D viewport stay open when selecting a checkbox
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index c342d30012..5f12294e22 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -7198,7 +7198,9 @@ Node3DEditor::Node3DEditor(EditorNode *p_editor) { hbc_menu->add_child(context_menu_container); _update_context_menu_stylebox(); + // Get the view menu popup and have it stay open when a checkable item is selected p = view_menu->get_popup(); + p->set_hide_on_checkable_item_selection(false); accept = memnew(AcceptDialog); editor->get_gui_base()->add_child(accept); |