[Bf-blender-cvs] [d11d5403f0a] master: UI Overlays: Align checkbox with slider for Wireframes, X-Ray, Shadows.

Pablo Vazquez noreply at git.blender.org
Sat Apr 20 19:01:54 CEST 2019


Commit: d11d5403f0a4548f3731776309e38defc165bd95
Author: Pablo Vazquez
Date:   Sat Apr 20 19:01:46 2019 +0200
Branches: master
https://developer.blender.org/rBd11d5403f0a4548f3731776309e38defc165bd95

UI Overlays: Align checkbox with slider for Wireframes, X-Ray, Shadows.

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

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 44a716487ce..0c3bfe2caf1 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -5007,7 +5007,7 @@ class VIEW3D_PT_shading_options(Panel):
         if shading.type != 'WIREFRAME':
             col.prop(shading, "show_backface_culling")
 
-        row = col.row()
+        row = col.row(align=True)
 
         if shading.type == 'WIREFRAME':
             row.prop(shading, "show_xray_wireframe", text="")
@@ -5022,7 +5022,7 @@ class VIEW3D_PT_shading_options(Panel):
             #X-ray mode is off when alpha is 1.0
             xray_active = shading.show_xray and shading.xray_alpha != 1
 
-            row = col.row()
+            row = col.row(align=True)
             row.prop(shading, "show_shadows", text="")
             row.active = not xray_active
             sub = row.row(align=True)
@@ -5265,7 +5265,7 @@ class VIEW3D_PT_overlay_geometry(Panel):
         col = layout.column()
         col.active = display_all
 
-        row = col.row()
+        row = col.row(align=True)
         if not is_wireframes:
             row.prop(overlay, "show_wireframes", text="")
         sub = row.row()



More information about the Bf-blender-cvs mailing list