[Bf-blender-cvs] [22f2405] master: Mesh Deform Modifier - leave bind settings visible after binding
Ines Almeida
noreply at git.blender.org
Wed Apr 20 19:53:38 CEST 2016
Commit: 22f2405d1b74c0532e51a7d347629dfa873a5a48
Author: Ines Almeida
Date: Wed Apr 20 19:51:59 2016 +0100
Branches: master
https://developer.blender.org/rB22f2405d1b74c0532e51a7d347629dfa873a5a48
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.
===================================================================
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 cf93971..aa03863 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)
More information about the Bf-blender-cvs
mailing list