UI: Use property split in vertex paint symmetry panels
Set property split in the higher level panel functions so that it carries over to buttons added after. Also discard the redundant "Symmetry" to make sure there is enough space for the checkbox label.
This commit is contained in:
@@ -124,11 +124,7 @@ class View3DPanel:
|
||||
|
||||
# Used by vertex & weight paint
|
||||
def draw_vpaint_symmetry(layout, vpaint, mesh):
|
||||
|
||||
col = layout.column()
|
||||
col.use_property_split = True
|
||||
col.use_property_decorate = False
|
||||
|
||||
row = col.row(heading="Mirror", align=True)
|
||||
row.prop(mesh, "use_mirror_x", text="X", toggle=True)
|
||||
row.prop(mesh, "use_mirror_y", text="Y", toggle=True)
|
||||
@@ -955,16 +951,18 @@ class VIEW3D_PT_tools_weightpaint_symmetry(Panel, View3DPaintPanel):
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
layout.use_property_decorate = False
|
||||
|
||||
tool_settings = context.tool_settings
|
||||
wpaint = tool_settings.weight_paint
|
||||
mesh = context.object.data
|
||||
|
||||
draw_vpaint_symmetry(layout, wpaint, mesh)
|
||||
|
||||
col = layout.column()
|
||||
row = col.row(align=True)
|
||||
row.prop(mesh, 'use_mirror_vertex_group_x')
|
||||
|
||||
row = layout.row(align=True)
|
||||
col = layout.column(align=True)
|
||||
col.prop(mesh, 'use_mirror_vertex_group_x', text="Vertex Group X")
|
||||
row = col.row()
|
||||
row.active = mesh.use_mirror_vertex_group_x
|
||||
row.prop(mesh, "use_mirror_topology")
|
||||
|
||||
@@ -1033,8 +1031,12 @@ class VIEW3D_PT_tools_vertexpaint_symmetry(Panel, View3DPaintPanel):
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
layout.use_property_decorate = False
|
||||
|
||||
tool_settings = context.tool_settings
|
||||
vpaint = tool_settings.vertex_paint
|
||||
|
||||
draw_vpaint_symmetry(layout, vpaint, context.object.data)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user