diff options
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) |