diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-11 19:30:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-11 19:30:27 +0300 |
commit | 026364dcca6539c4e3ad6a5010cba81e61638ef2 (patch) | |
tree | 54488973264d95add2fd491735076d82b4427a1e /release/scripts/modules/rigify_utils.py | |
parent | ab18fe02c458a88b4a010c23f0703ab999b5a9f8 (diff) |
rigify
* optional default blend argument, use for better leg & arm defaults
* way to define arbitrary options for bones that can then be passed to the generator function, only used to set elbow target parent at the moment.
Diffstat (limited to 'release/scripts/modules/rigify_utils.py')
-rw-r--r-- | release/scripts/modules/rigify_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/rigify_utils.py b/release/scripts/modules/rigify_utils.py index a1fc54cb5bb..6b15329c992 100644 --- a/release/scripts/modules/rigify_utils.py +++ b/release/scripts/modules/rigify_utils.py @@ -113,7 +113,7 @@ def copy_bone_simple_list(arm, from_bones, to_bones, parent=False): return copy_bones -def blend_bone_list(obj, apply_bones, from_bones, to_bones, target_bone=None, target_prop="blend"): +def blend_bone_list(obj, apply_bones, from_bones, to_bones, target_bone=None, target_prop="blend", blend_default=0.5): if obj.mode == 'EDIT': raise Exception("blending cant be called in editmode") @@ -130,7 +130,7 @@ def blend_bone_list(obj, apply_bones, from_bones, to_bones, target_bone=None, ta prop_pbone = obj.pose.bones[target_bone] if prop_pbone.get(target_bone, None) is None: prop = rna_idprop_ui_prop_get(prop_pbone, target_prop, create=True) - prop_pbone[target_prop] = 0.5 + prop_pbone[target_prop] = blend_default prop["soft_min"] = 0.0 prop["soft_max"] = 1.0 |