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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_scene_x/export_x.py')
-rw-r--r--io_scene_x/export_x.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/io_scene_x/export_x.py b/io_scene_x/export_x.py
index fb17106e..345d14ab 100644
--- a/io_scene_x/export_x.py
+++ b/io_scene_x/export_x.py
@@ -1144,10 +1144,15 @@ class ArmatureAnimationGenerator(GenericAnimationGenerator):
for Bone, BoneAnimation in \
zip(ArmatureObject.pose.bones, BoneAnimations):
+ RotationMode = Bone.rotation_mode
+ Bone.rotation_mode = 'QUATERNION'
+
Rotation = ArmatureObject.data.bones[Bone.name] \
.matrix.to_quaternion() * \
Bone.rotation_quaternion
+ Bone.rotation_mode = RotationMode
+
PoseMatrix = Matrix()
if Bone.parent:
PoseMatrix = Bone.parent.matrix.inverted()