[Bf-blender-cvs] [6d96e75] soc-2013-sketch_mesh: Code Cleanup: minor changes to laplacian deform modifier interface
Campbell Barton
noreply at git.blender.org
Thu Nov 21 23:42:25 CET 2013
Commit: 6d96e75f6f2c26b23a77a737a8bf14dec81fcf3e
Author: Campbell Barton
Date: Fri Nov 22 09:35:19 2013 +1100
http://developer.blender.org/rB6d96e75f6f2c26b23a77a737a8bf14dec81fcf3e
Code Cleanup: minor changes to laplacian deform modifier interface
===================================================================
M release/scripts/startup/bl_ui/properties_data_modifier.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index 2a86b92..7e89224 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -374,20 +374,23 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
row.operator("object.hook_assign", text="Assign")
def LAPLACIANDEFORM(self, layout, ob, md):
+ is_bind = md.is_bind
+
layout.prop(md, "iterations")
+
row = layout.row()
+ row.active = not is_bind
row.label(text="Anchors Vertex Group:")
- row.active = not md.is_bind
+
row = layout.row()
+ row.enabled = not is_bind
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
- row.enabled = not md.is_bind
+
layout.separator()
+
row = layout.row()
- if md.is_bind:
- row.operator("object.laplaciandeform_bind", text="Unbind")
- else:
- row.operator("object.laplaciandeform_bind", text="Bind")
row.enabled = bool(md.vertex_group)
+ row.operator("object.laplaciandeform_bind", text="Unbind" if is_bind else "Bind")
def LAPLACIANSMOOTH(self, layout, ob, md):
layout.prop(md, "iterations")
More information about the Bf-blender-cvs
mailing list