diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-05 10:08:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-05 10:08:34 +0300 |
commit | 696b0366f5c46dcfcb50f53b4ca4f59c593b88fb (patch) | |
tree | 8dfbeb67383adc39b5742c661f61a55eb4066659 /rigify/utils.py | |
parent | dfd3febce161e76015beb0faac516724aceff453 (diff) |
update for changes in mathutuils.
Diffstat (limited to 'rigify/utils.py')
-rw-r--r-- | rigify/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rigify/utils.py b/rigify/utils.py index 84d4c4f1..f0a19aac 100644 --- a/rigify/utils.py +++ b/rigify/utils.py @@ -237,12 +237,12 @@ def obj_to_bone(obj, rig, bone_name): mat = rig.matrix_world * bone.matrix_local - obj.location = mat.translation_part() + obj.location = mat.to_translation() obj.rotation_mode = 'XYZ' obj.rotation_euler = mat.to_euler() - scl = mat.scale_part() + scl = mat.to_scale() scl_avg = (scl[0] + scl[1] + scl[2]) / 3 obj.scale = (bone.length * scl_avg), (bone.length * scl_avg), (bone.length * scl_avg) |