[Bf-extensions-cvs] [f63d9de] master: DirectX format, use matrix_basis for the original rotation
Campbell Barton
noreply at git.blender.org
Wed Apr 15 06:44:25 CEST 2015
Commit: f63d9de38b7e85ae5f0c93d419b10e7789b6bd3a
Author: Campbell Barton
Date: Wed Apr 15 14:42:59 2015 +1000
Branches: master
https://developer.blender.org/rBAf63d9de38b7e85ae5f0c93d419b10e7789b6bd3a
DirectX format, use matrix_basis for the original rotation
===================================================================
M io_scene_x/export_x.py
===================================================================
diff --git a/io_scene_x/export_x.py b/io_scene_x/export_x.py
index fb17106..8c67538 100644
--- a/io_scene_x/export_x.py
+++ b/io_scene_x/export_x.py
@@ -1146,7 +1146,7 @@ class ArmatureAnimationGenerator(GenericAnimationGenerator):
Rotation = ArmatureObject.data.bones[Bone.name] \
.matrix.to_quaternion() * \
- Bone.rotation_quaternion
+ Bone.matrix_basis.to_quaternion()
PoseMatrix = Matrix()
if Bone.parent:
More information about the Bf-extensions-cvs
mailing list