diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2016-02-22 16:41:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-02-22 16:48:14 +0300 |
commit | 5a7b98485e28554d740d6d06437fbe0d7b557cc3 (patch) | |
tree | b176c2ff3df5f240e8a723baeb86b920543d966c | |
parent | 2842b37eb86bfb77a2914020c4463fb3e0d54678 (diff) |
Fix for referencing invalid data
Mode switching made this data invalid
-rw-r--r-- | rigify/rigs/pitchipoy/super_face.py | 7 |
1 files changed, 4 insertions, 3 deletions
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']: |