Code cleanup: style
This commit is contained in:
@@ -63,9 +63,9 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
col.prop(md, "use_bone_envelopes", text="Bone Envelopes")
|
||||
|
||||
layout.separator()
|
||||
|
||||
|
||||
split = layout.split()
|
||||
|
||||
|
||||
row = split.row(align=True)
|
||||
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
||||
sub = row.row(align=True)
|
||||
@@ -139,7 +139,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
elif md.limit_method == 'VGROUP':
|
||||
layout.label(text="Vertex Group:")
|
||||
layout.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
||||
|
||||
|
||||
layout.label(text="Width Method:")
|
||||
layout.row().prop(md, "offset_type", expand=True)
|
||||
|
||||
@@ -262,12 +262,12 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
|
||||
if decimate_type == 'COLLAPSE':
|
||||
layout.prop(md, "ratio")
|
||||
|
||||
|
||||
split = layout.split()
|
||||
row = split.row(align=True)
|
||||
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
||||
row.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
|
||||
|
||||
|
||||
split.prop(md, "use_collapse_triangulate")
|
||||
elif decimate_type == 'UNSUBDIV':
|
||||
layout.prop(md, "iterations")
|
||||
@@ -464,10 +464,10 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
col.active = not md.is_bound
|
||||
col.label(text="Object:")
|
||||
col.prop(md, "object", text="")
|
||||
|
||||
|
||||
col = split.column()
|
||||
col.label(text="Vertex Group:")
|
||||
|
||||
|
||||
row = col.row(align=True)
|
||||
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
||||
sub = row.row(align=True)
|
||||
@@ -792,18 +792,18 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
col = split.column()
|
||||
col.prop(md, "thickness")
|
||||
col.prop(md, "thickness_clamp")
|
||||
|
||||
|
||||
col.separator()
|
||||
|
||||
|
||||
row = col.row(align=True)
|
||||
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
||||
sub = row.row(align=True)
|
||||
sub.active = bool(md.vertex_group)
|
||||
sub.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
|
||||
|
||||
|
||||
sub = col.row()
|
||||
sub.active = bool(md.vertex_group)
|
||||
sub.prop(md, "thickness_vertex_group", text="Factor")
|
||||
sub.prop(md, "thickness_vertex_group", text="Factor")
|
||||
|
||||
col.label(text="Crease:")
|
||||
col.prop(md, "edge_crease_inner", text="Inner")
|
||||
@@ -818,11 +818,11 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
col.prop(md, "use_even_offset")
|
||||
col.prop(md, "use_quality_normals")
|
||||
col.prop(md, "use_rim")
|
||||
|
||||
|
||||
col.separator()
|
||||
|
||||
|
||||
col.label(text="Material Index Offset:")
|
||||
|
||||
|
||||
sub = col.column()
|
||||
row = sub.split(align=True, percentage=0.4)
|
||||
row.prop(md, "material_offset", text="")
|
||||
|
Reference in New Issue
Block a user