UI fixes for Laplacian Smooth (r51578):

* Make UI look more like Smooth Modifier.
* Don't use RNA property names like "lamb", use a more descriptive one instead.
This commit is contained in:
Thomas Dinges
2012-10-24 11:13:43 +00:00
parent ba48c94a8b
commit e4fcc07a10
2 changed files with 20 additions and 12 deletions

View File

@@ -333,15 +333,23 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
def LAPLACIANSMOOTH(self, layout, ob, md):
layout.prop(md, "iterations")
layout.prop(md, "lamb")
layout.prop(md, "lambdaborder")
row = layout.row()
row.label(text="Axis: ")
row.prop(md, "use_x")
row.prop(md, "use_y")
row.prop(md, "use_z")
row = layout.row()
row.prop(md, "volume_preservation")
split = layout.split(percentage=0.25)
col = split.column()
col.label(text="Axis:")
col.prop(md, "use_x")
col.prop(md, "use_y")
col.prop(md, "use_z")
col = split.column()
col.label(text="Lambda:")
col.prop(md, "lambda_factor", text="Factor")
col.prop(md, "lambda_border", text="Border")
col.separator()
col.prop(md, "volume_preservation")
layout.label(text="Vertex Group:")
layout.prop_search(md, "vertex_group", ob, "vertex_groups", text="")