mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 20:36:53 +01:00
Keep Perspective menu open on selection
Makes the Perspective menu consistent with the View menu in the 3D viewport. This allows for quicker inspection of the scene, and makes missclicks more forgiving. (cherry picked from commit e3ab344af9839bbe1ffa690093acd9ea7ffde554)
This commit is contained in:
parent
c7f001ccf5
commit
059d393d42
@ -4404,6 +4404,7 @@ SpatialEditorViewport::SpatialEditorViewport(SpatialEditor *p_spatial_editor, Ed
|
|||||||
view_menu->set_flat(false);
|
view_menu->set_flat(false);
|
||||||
vbox->add_child(view_menu);
|
vbox->add_child(view_menu);
|
||||||
view_menu->set_h_size_flags(0);
|
view_menu->set_h_size_flags(0);
|
||||||
|
view_menu->get_popup()->set_hide_on_checkable_item_selection(false);
|
||||||
|
|
||||||
view_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("spatial_editor/top_view"), VIEW_TOP);
|
view_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("spatial_editor/top_view"), VIEW_TOP);
|
||||||
view_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("spatial_editor/bottom_view"), VIEW_BOTTOM);
|
view_menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("spatial_editor/bottom_view"), VIEW_BOTTOM);
|
||||||
|
Loading…
Reference in New Issue
Block a user