diff options
author | Ines Almeida <britalmeida@gmail.com> | 2016-04-20 21:51:59 +0300 |
---|---|---|
committer | Ines Almeida <britalmeida@gmail.com> | 2016-04-20 21:51:59 +0300 |
commit | 22f2405d1b74c0532e51a7d347629dfa873a5a48 (patch) | |
tree | 4c88a0bcb8bf1fb3883b8b02f4fe0d240886bc31 /release | |
parent | 9bd1c8caf72e9b1c2a71929a8968389eea8ca5b3 (diff) |
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.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_modifier.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py index cf939719ba3..aa03863a198 100644 --- a/release/scripts/startup/bl_ui/properties_data_modifier.py +++ b/release/scripts/startup/bl_ui/properties_data_modifier.py @@ -503,13 +503,12 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel): split = layout.split() col = split.column() - col.active = not md.is_bound + col.enabled = 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) @@ -517,16 +516,17 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel): sub.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT') 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: layout.operator("object.meshdeform_bind", text="Unbind") else: 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): split = layout.split(percentage=0.25) |