UI Overlays: One line layout for Mask opacity.
authorPablo Vazquez <venomgfx@gmail.com>
Sat, 20 Apr 2019 17:01:03 +0000 (19:01 +0200)
committerPablo Vazquez <venomgfx@gmail.com>
Sat, 20 Apr 2019 17:01:03 +0000 (19:01 +0200)
Saves one line of space and matches Wireframe, X-Ray, Shadows.

release/scripts/startup/bl_ui/space_view3d.py

index bb56946..44a7164 100644 (file)
@@ -5576,10 +5576,12 @@ class VIEW3D_PT_overlay_sculpt(Panel):
         overlay = view.overlay
 
         layout.prop(sculpt, "show_diffuse_color")
-        layout.prop(sculpt, "show_mask")
-        row = layout.row()
-        row.active = sculpt.show_mask
-        row.prop(overlay, "sculpt_mode_mask_opacity", text="Opacity")
+
+        row = layout.row(align=True)
+        row.prop(sculpt, "show_mask", text="")
+        sub = row.row()
+        sub.active = sculpt.show_mask
+        sub.prop(overlay, "sculpt_mode_mask_opacity", text="Mask")
 
 
 class VIEW3D_PT_overlay_pose(Panel):