[Bf-blender-cvs] [1e889f27051] temp-checkbox-layout-tweaks: Sculpt & paint UI checkbox layout updates
William Reynish
noreply at git.blender.org
Wed Apr 8 23:54:22 CEST 2020
Commit: 1e889f270517ed9d98a00d6f5c3370e985854493
Author: William Reynish
Date: Wed Apr 8 23:53:32 2020 +0200
Branches: temp-checkbox-layout-tweaks
https://developer.blender.org/rB1e889f270517ed9d98a00d6f5c3370e985854493
Sculpt & paint UI checkbox layout updates
===================================================================
M release/scripts/startup/bl_ui/properties_paint_common.py
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index 0b006c9cea3..9ea7ad96155 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -817,23 +817,27 @@ def brush_settings_advanced(layout, context, brush, popover=False):
use_accumulate = capabilities.has_accumulate
use_frontface = True
+ col = layout.column(heading = "Auto-Masking", align = True)
+
# topology automasking
- layout.prop(brush, "use_automasking_topology")
+ layout.prop(brush, "use_automasking_topology", text = "Topology")
# face masks automasking
- layout.prop(brush, "use_automasking_face_sets")
+ layout.prop(brush, "use_automasking_face_sets", text = "Face Sets")
# boundary edges/face sets automasking
- layout.prop(brush, "use_automasking_boundary_edges")
- layout.prop(brush, "use_automasking_boundary_face_sets")
+ layout.prop(brush, "use_automasking_boundary_edges", text = "Mesh Boundary")
+ layout.prop(brush, "use_automasking_boundary_face_sets", text = "Face Sets")
layout.prop(brush, "automasking_boundary_edges_propagation_steps")
+ layout.separator()
# sculpt plane settings
if capabilities.has_sculpt_plane:
layout.prop(brush, "sculpt_plane")
- layout.prop(brush, "use_original_normal")
- layout.prop(brush, "use_original_plane")
+ col = layout.column(heading = "Original", align = True)
+ layout.prop(brush, "use_original_normal", text ="Normal")
+ layout.prop(brush, "use_original_plane", text ="Plane")
layout.separator()
# 3D and 2D Texture Paint.
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 6aaeec3f3cf..993b0038529 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -872,10 +872,13 @@ class VIEW3D_PT_sculpt_voxel_remesh(Panel, View3DPaintPanel):
col.prop(mesh, "remesh_voxel_adaptivity")
col.prop(mesh, "use_remesh_fix_poles")
col.prop(mesh, "use_remesh_smooth_normals")
- col.prop(mesh, "use_remesh_preserve_volume")
- col.prop(mesh, "use_remesh_preserve_paint_mask")
- col.prop(mesh, "use_remesh_preserve_sculpt_face_sets")
- col.operator("object.voxel_remesh", text="Remesh")
+
+ col = layout.column(heading = "Preserve", align = True)
+ col.prop(mesh, "use_remesh_preserve_volume", text = "Volume")
+ col.prop(mesh, "use_remesh_preserve_paint_mask", text = "Paint Mask")
+ col.prop(mesh, "use_remesh_preserve_sculpt_face_sets", text = "Face Sets")
+
+ layout.operator("object.voxel_remesh", text="Remesh")
# TODO, move to space_view3d.py
@@ -896,23 +899,19 @@ class VIEW3D_PT_sculpt_options(Panel, View3DPaintPanel):
tool_settings = context.tool_settings
sculpt = tool_settings.sculpt
- flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)
-
- col = flow.column()
+ col = layout.column(heading = "Display", align = True)
col.prop(sculpt, "use_threaded", text="Threaded Sculpt")
- col = flow.column()
col.prop(sculpt, "show_low_resolution")
- col = flow.column()
col.prop(sculpt, "use_sculpt_delay_updates")
- col = flow.column()
col.prop(sculpt, "use_deform_only")
- col = flow.column()
col.separator()
- col.prop(sculpt, "use_automasking_topology")
- col.prop(sculpt, "use_automasking_face_sets")
- col.prop(sculpt, "use_automasking_boundary_edges")
- col.prop(sculpt, "use_automasking_boundary_face_sets")
+
+ col = layout.column(heading = "Auto-Masking", align = True)
+ col.prop(sculpt, "use_automasking_topology", text = "Topology")
+ col.prop(sculpt, "use_automasking_face_sets", text = "Face Sets")
+ col.prop(sculpt, "use_automasking_boundary_edges", text = "Boundary Edges")
+ col.prop(sculpt, "use_automasking_boundary_face_sets", text = "Boundary Face Sets")
class VIEW3D_PT_sculpt_options_gravity(Panel, View3DPaintPanel):
@@ -1212,12 +1211,8 @@ class VIEW3D_PT_tools_imagepaint_options(View3DPaintPanel, Panel):
layout.prop(ipaint, "seam_bleed")
layout.prop(ipaint, "dither", slider=True)
- flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False)
-
- col = flow.column()
+ col = layout.column()
col.prop(ipaint, "use_occlude")
-
- col = flow.column()
col.prop(ipaint, "use_backface_culling", text="Backface Culling")
More information about the Bf-blender-cvs
mailing list