From fd91b2dbb9c4039a728da69e78d35afe2106b91e Mon Sep 17 00:00:00 2001 From: Jummit Date: Sun, 3 Jul 2022 17:22:06 +0200 Subject: [PATCH] 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) --- editor/plugins/spatial_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 15743e976ff..ccd9fc76ed7 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -4076,6 +4076,7 @@ SpatialEditorViewport::SpatialEditorViewport(SpatialEditor *p_spatial_editor, Ed view_menu->set_flat(false); vbox->add_child(view_menu); 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/bottom_view"), VIEW_BOTTOM);