Mesh Deform Modifier - leave bind settings visible after binding
authorInes Almeida <britalmeida@gmail.com>
Wed, 20 Apr 2016 18:51:59 +0000 (19:51 +0100)
committerInes Almeida <britalmeida@gmail.com>
Wed, 20 Apr 2016 18:51:59 +0000 (19:51 +0100)
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.

release/scripts/startup/bl_ui/properties_data_modifier.py

index cf939719ba3b77d270fb9896bc5e54d6ac1f6a94..aa03863a1987cd70f92de4c753dd5e4a93d236ee 100644 (file)
@@ -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)