diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-09-29 11:00:38 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-09-29 17:48:56 +0300 |
commit | 6bb8ab3ad7b8131ffa9ed3261b6da8627903f3b1 (patch) | |
tree | e9df96fbef4073c43ee1a316763c632b9392a387 /rigify/utils/rig.py | |
parent | 73784e78de99cb647870cbd93ef497f3e437a1a6 (diff) |
Rigify: various additions to bone, mechanism and widget utilities.
Support easier setting of bone orientation via matrix, inherit_scale,
invert_x/y/z constraint properties, computing a matrix from two axis
vectors, adjusting widget positions, and add a pivot widget.
Diffstat (limited to 'rigify/utils/rig.py')
-rw-r--r-- | rigify/utils/rig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rigify/utils/rig.py b/rigify/utils/rig.py index 41027c69..8c646ab5 100644 --- a/rigify/utils/rig.py +++ b/rigify/utils/rig.py @@ -235,8 +235,8 @@ def write_metarig(obj, layers=False, func_name="create", groups=False): for bone_name in bones: bone = arm.edit_bones[bone_name] code.append(" bone = arm.edit_bones.new(%r)" % bone.name) - code.append(" bone.head[:] = %.4f, %.4f, %.4f" % bone.head.to_tuple(4)) - code.append(" bone.tail[:] = %.4f, %.4f, %.4f" % bone.tail.to_tuple(4)) + code.append(" bone.head = %.4f, %.4f, %.4f" % bone.head.to_tuple(4)) + code.append(" bone.tail = %.4f, %.4f, %.4f" % bone.tail.to_tuple(4)) code.append(" bone.roll = %.4f" % bone.roll) code.append(" bone.use_connect = %s" % str(bone.use_connect)) if bone.parent: |