[Bf-blender-cvs] [55d44a3b6ba] blender2.8: UI: Move Object Type Visibility next to shading/overlay settings

Pablo Vazquez noreply at git.blender.org
Wed Jul 11 13:24:19 CEST 2018


Commit: 55d44a3b6bab2bd91fd1a15de6a18db592b196b3
Author: Pablo Vazquez
Date:   Wed Jul 11 13:24:04 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB55d44a3b6bab2bd91fd1a15de6a18db592b196b3

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

===================================================================

M	release/scripts/startup/bl_ui/space_view3d.py

===================================================================

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



More information about the Bf-blender-cvs mailing list