bug fixed when calculating animation bone offsets

This commit is contained in:
Campbell Barton 2007-05-02 23:45:09 +00:00
parent 180d58430b
commit b0852bee2c

@ -501,7 +501,7 @@ def bvh_node_dict2armature(bvh_nodes, IMPORT_START_FRAME= 1, IMPORT_LOOP= False)
if bvh_node.has_loc:
# Set the Location, simple too
pose_bone.loc= (\
TranslationMatrix(Vector(lx, ly, lz)) *\
TranslationMatrix(Vector(lx, ly, lz) - bvh_node.rest_head_local ) *\
bone_rest_matrix_inv).translationPart() # WHY * 10? - just how pose works
# Get the transform
@ -746,4 +746,4 @@ if __name__ == '__main__':
scn = bpy.data.scenes.active
for ob in list(scn.objects): scn.objects.unlink(ob)
load_bvh_ui('/test.bvh', False)
'''
'''