forked from bartvdbraak/blender
bug fixed when calculating animation bone offsets
This commit is contained in:
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)
|
||||
'''
|
||||
'''
|
Loading…
Reference in New Issue
Block a user