UI Overlays: Align checkbox with slider for Wireframes, X-Ray, Shadows.
authorPablo Vazquez <venomgfx@gmail.com>
Sat, 20 Apr 2019 17:01:46 +0000 (19:01 +0200)
committerPablo Vazquez <venomgfx@gmail.com>
Sat, 20 Apr 2019 17:01:46 +0000 (19:01 +0200)
release/scripts/startup/bl_ui/space_view3d.py

index 44a7164..0c3bfe2 100644 (file)
@@ -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()