Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rigify/utils.py')
-rw-r--r--rigify/utils.py4
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)