Mesh Deform Modifier - leave bind settings visible after binding
The 'precision' and 'dynamic' settings for binding are now always visible. The settings that can not be edited after binding are disabled (not inactive). I find it useful to see with what settings a mesh was bound, in case the file is not mine or if I simply lost track of it.
This commit is contained in:
@@ -503,13 +503,12 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
|||||||
split = layout.split()
|
split = layout.split()
|
||||||
|
|
||||||
col = split.column()
|
col = split.column()
|
||||||
col.active = not md.is_bound
|
col.enabled = not md.is_bound
|
||||||
col.label(text="Object:")
|
col.label(text="Object:")
|
||||||
col.prop(md, "object", text="")
|
col.prop(md, "object", text="")
|
||||||
|
|
||||||
col = split.column()
|
col = split.column()
|
||||||
col.label(text="Vertex Group:")
|
col.label(text="Vertex Group:")
|
||||||
|
|
||||||
row = col.row(align=True)
|
row = col.row(align=True)
|
||||||
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
||||||
sub = row.row(align=True)
|
sub = row.row(align=True)
|
||||||
@@ -517,16 +516,17 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
|||||||
sub.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
|
sub.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
|
row = layout.row()
|
||||||
|
row.enabled = not md.is_bound
|
||||||
|
row.prop(md, "precision")
|
||||||
|
row.prop(md, "use_dynamic_bind")
|
||||||
|
|
||||||
|
layout.separator()
|
||||||
if md.is_bound:
|
if md.is_bound:
|
||||||
layout.operator("object.meshdeform_bind", text="Unbind")
|
layout.operator("object.meshdeform_bind", text="Unbind")
|
||||||
else:
|
else:
|
||||||
layout.operator("object.meshdeform_bind", text="Bind")
|
layout.operator("object.meshdeform_bind", text="Bind")
|
||||||
|
|
||||||
row = layout.row()
|
|
||||||
row.prop(md, "precision")
|
|
||||||
row.prop(md, "use_dynamic_bind")
|
|
||||||
|
|
||||||
def MIRROR(self, layout, ob, md):
|
def MIRROR(self, layout, ob, md):
|
||||||
split = layout.split(percentage=0.25)
|
split = layout.split(percentage=0.25)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user