diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-03-28 20:44:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-03-31 02:20:11 +0300 |
commit | c16a8983efba9ecacd8da408d03c37a55483e528 (patch) | |
tree | bfeb0f644ac3bd8782bef474329e5a991c82d08c /release | |
parent | 660173ed72d9c69f6891d5ad05a8c4a35ece9c7c (diff) |
Corrective Smooth Modifier (aka delta-mush)
This modifier can be used to correct bad deformations,
Original patch D1183 by @sazerac, with own modifications
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_modifier.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py index f22976f5b6d..a3cf079f915 100644 --- a/release/scripts/startup/bl_ui/properties_data_modifier.py +++ b/release/scripts/startup/bl_ui/properties_data_modifier.py @@ -1386,6 +1386,31 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel): sub.active = has_vgroup sub.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT') + def CORRECTIVE_SMOOTH(self, layout, ob, md): + is_bind = md.is_bind + + layout.prop(md, "iterations") + layout.prop(md, "lambda_factor", text="Factor") + + row = layout.row() + row.prop(md, "smooth_type") + + split = layout.split() + + col = split.column() + col.label(text="Vertex Group:") + row = col.row(align=True) + row.prop_search(md, "vertex_group", ob, "vertex_groups", text="") + row.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT') + + col = split.column() + col.prop(md, "use_only_smooth") + col.prop(md, "use_pin_boundary") + + layout.prop(md, "rest_source") + if md.rest_source == 'BIND': + layout.operator("object.correctivesmooth_bind", text="Unbind" if is_bind else "Bind") + if __name__ == "__main__": # only for live edit. bpy.utils.register_module(__name__) |