diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2018-07-11 14:24:04 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2018-07-11 14:24:13 +0300 |
commit | 55d44a3b6bab2bd91fd1a15de6a18db592b196b3 (patch) | |
tree | 7b7437111af3da2a6dd0d7bb38e9b0142660a0f6 | |
parent | 160959152ebc980130c2c56bab3471167257eece (diff) |
UI: Move Object Type Visibility next to shading/overlay settings
Group Object Type Visibility with the viewport settings in the header.
The eye icon is a placeholder. A new icon is needed to better communicate
the user at a glance if all (or none) object types are enabled, or why certain types
are not visible/selectable in the viewport.
Part of design: T55863
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index e3f3d05defb..9c8a4265146 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -209,6 +209,13 @@ class VIEW3D_HT_header(Header): layout.separator_spacer() # Viewport Settings + layout.popover( + space_type='VIEW_3D', + region_type='HEADER', + panel_type="VIEW3D_PT_object_type_visibility", + icon="HIDE_OFF", + text="") + row = layout.row(align=True) row.prop(shading, "type", text="", expand=True) @@ -3691,9 +3698,9 @@ class VIEW3D_PT_view3d_cursor(Panel): class VIEW3D_PT_object_type_visibility(Panel): bl_space_type = 'VIEW_3D' - bl_region_type = 'UI' + bl_region_type = 'HEADER' bl_label = "View Object Types" - bl_options = {'DEFAULT_CLOSED'} + bl_ui_units_x = 6 def draw(self, context): layout = self.layout |