Make the "View" menu in 3D view toolbar stay open when selecting a checkbox
This pull request fixes an issue where the "View" menu in the 3D view toolbar would close when you selected either the "View Origin" or "View Grid" checkboxes. This was inconvenient and wasted time by making you have to reopen the menu in order to get to other settings anytime you changed this.
This commit is contained in:
parent
00ce2d41ca
commit
3ffd75107d
1 changed files with 2 additions and 0 deletions
|
@ -7198,7 +7198,9 @@ Node3DEditor::Node3DEditor(EditorNode *p_editor) {
|
||||||
hbc_menu->add_child(context_menu_container);
|
hbc_menu->add_child(context_menu_container);
|
||||||
_update_context_menu_stylebox();
|
_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 = view_menu->get_popup();
|
||||||
|
p->set_hide_on_checkable_item_selection(false);
|
||||||
|
|
||||||
accept = memnew(AcceptDialog);
|
accept = memnew(AcceptDialog);
|
||||||
editor->get_gui_base()->add_child(accept);
|
editor->get_gui_base()->add_child(accept);
|
||||||
|
|
Loading…
Reference in a new issue