Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-05-03 03:45:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-05-03 03:45:09 +0400
commitb0852bee2c4611511ead1dc6b6fed5ef31239795 (patch)
treea7b5eea277f984cf6a6a187d3e286d9887b50e50 /release
parent180d58430b94b06767fdbc0bd5f3dce5a017e5db (diff)
bug fixed when calculating animation bone offsets
Diffstat (limited to 'release')
-rw-r--r--release/scripts/bvh_import.py4
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