Merge pull request #51118 from SirQuartz/patch-39

Make the "View" menu in the 3D viewport stay open when selecting a checkbox
This commit is contained in:
Rémi Verschelde 2021-08-03 09:35:17 +02:00 committed by GitHub
commit a7f24080a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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