From 5a7b98485e28554d740d6d06437fbe0d7b557cc3 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Tue, 23 Feb 2016 00:41:15 +1100 Subject: Fix for referencing invalid data Mode switching made this data invalid --- rigify/rigs/pitchipoy/super_face.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rigify/rigs') diff --git a/rigify/rigs/pitchipoy/super_face.py b/rigify/rigs/pitchipoy/super_face.py index 2156ea72..9ed711c3 100644 --- a/rigify/rigs/pitchipoy/super_face.py +++ b/rigify/rigs/pitchipoy/super_face.py @@ -119,7 +119,8 @@ class Rig: distance = ( eyeL_e.head - eyeR_e.head ) * 3 distance = distance.cross( (0, 0, 1) ) - + eye_length = eyeL_e.length + eyeL_ctrl_name = strip_org( bones['eyes'][0] ) eyeR_ctrl_name = strip_org( bones['eyes'][1] ) @@ -136,8 +137,8 @@ class Rig: eyes_ctrl_e.head[:] = ( eyeL_ctrl_e.head + eyeR_ctrl_e.head ) / 2 for bone in [ eyeL_ctrl_e, eyeR_ctrl_e, eyes_ctrl_e ]: - bone.tail[:] = bone.head + Vector( [ 0, 0, eyeL_e.length * 0.75 ] ) - + bone.tail[:] = bone.head + Vector( [ 0, 0, eye_length * 0.75 ] ) + ## Widget for transforming the both eyes eye_master_names = [] for bone in bones['eyes']: -- cgit v1.2.3