diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-05-03 03:45:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-05-03 03:45:09 +0400 |
commit | b0852bee2c4611511ead1dc6b6fed5ef31239795 (patch) | |
tree | a7b5eea277f984cf6a6a187d3e286d9887b50e50 | |
parent | 180d58430b94b06767fdbc0bd5f3dce5a017e5db (diff) |
bug fixed when calculating animation bone offsets
-rw-r--r-- | release/scripts/bvh_import.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/bvh_import.py b/release/scripts/bvh_import.py index 17d905842ac..aa21cc82c57 100644 --- a/release/scripts/bvh_import.py +++ b/release/scripts/bvh_import.py @@ -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) - ''' + '''
\ No newline at end of file |