From 6cfb952ecf8cb4caee6fdbb86e5619d8698cc625 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 8 Apr 2016 13:11:05 -1000 Subject: [PATCH] Remove bone_trans_head hack --- hecl/blender/hecl_blendershell.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hecl/blender/hecl_blendershell.py b/hecl/blender/hecl_blendershell.py index 1f20bf6e7..e965a7e4d 100644 --- a/hecl/blender/hecl_blendershell.py +++ b/hecl/blender/hecl_blendershell.py @@ -114,13 +114,11 @@ def animin_loop(globals): crv.keyframe_points.add(count=key_info[1]) if crv_type[0] == 1: - #trans_head = globals['bone_trans_head'][key_info[0]] - trans_head = 0 for k in range(key_info[1]): key_data = struct.unpack('if', os.read(readfd, 8)) pt = crv.keyframe_points[k] pt.interpolation = 'LINEAR' - pt.co = (key_data[0], key_data[1] - trans_head) + pt.co = (key_data[0], key_data[1]) else: for k in range(key_info[1]): key_data = struct.unpack('if', os.read(readfd, 8)) @@ -214,7 +212,7 @@ def dataout_loop(): for bone in armObj.data.bones: writepipebuf(struct.pack('I', len(bone.name))) writepipebuf(bone.name.encode()) - for r in bone.matrix: + for r in bone.matrix_local.to_3x3(): for c in r: writepipebuf(struct.pack('f', c))