diff options
author | Joseph Eagar <joeedh@gmail.com> | 2010-09-04 09:31:25 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2010-09-04 09:31:25 +0400 |
commit | bb7339a7aec37bdb2ee8a21599e6c65b37ef1277 (patch) | |
tree | 6fb8da94c6e43098c606f768e722484b04b8645c /release/scripts/modules/rigify_utils.py | |
parent | 37f2c8a64c3277f100ab084ef1bb3846bc7b2c62 (diff) | |
parent | 8a320974f1b3e6004db3b3ad64f97742f878cbee (diff) |
merge with trunk at r31523
Diffstat (limited to 'release/scripts/modules/rigify_utils.py')
-rw-r--r-- | release/scripts/modules/rigify_utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/modules/rigify_utils.py b/release/scripts/modules/rigify_utils.py index 25ab6bebf48..a270af949da 100644 --- a/release/scripts/modules/rigify_utils.py +++ b/release/scripts/modules/rigify_utils.py @@ -67,7 +67,7 @@ def add_stretch_to(obj, from_name, to_name, name): con = stretch_pbone.constraints.new('STRETCH_TO') con.target = obj con.subtarget = to_name - con.original_length = (head - tail).length + con.rest_length = (head - tail).length con.keep_axis = 'PLANE_X' con.volume = 'NO_VOLUME' @@ -81,13 +81,13 @@ def copy_bone_simple(arm, from_bone, name, parent=False): ebone_new = arm.edit_bones.new(name) if parent: - ebone_new.connected = ebone.connected + ebone_new.use_connect = ebone.use_connect ebone_new.parent = ebone.parent ebone_new.head = ebone.head ebone_new.tail = ebone.tail ebone_new.roll = ebone.roll - ebone_new.layer = list(ebone.layer) + ebone_new.layers = list(ebone.layers) return ebone_new @@ -276,7 +276,7 @@ def write_meta_rig(obj, func_name="metarig_template"): 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.connected = %s" % str(bone.connected)) + code.append(" bone.use_connect = %s" % str(bone.use_connect)) if bone.parent: code.append(" bone.parent = arm.edit_bones['%s']" % bone.parent.name) |