[Bf-extensions-cvs] [524140a] master: Revert "Fix for exporting animation on armature bones that have keys for a rotation_mode other than 'QUATERNION'. Thanks to Dmitry (MakKlaski) for highlighting this issue."

Campbell Barton noreply at git.blender.org
Wed Apr 15 06:44:25 CEST 2015


Commit: 524140ae5c9f4b0c51d4dd381be30112f3a41104
Author: Campbell Barton
Date:   Wed Apr 15 14:38:10 2015 +1000
Branches: master
https://developer.blender.org/rBA524140ae5c9f4b0c51d4dd381be30112f3a41104

Revert "Fix for exporting animation on armature bones that have keys for a rotation_mode other than 'QUATERNION'.  Thanks to Dmitry (MakKlaski) for highlighting this issue."

This reverts commit e66cdc9f40ef48fab506e801ec1e313db2487e0a.

===================================================================

M	io_scene_x/export_x.py

===================================================================

diff --git a/io_scene_x/export_x.py b/io_scene_x/export_x.py
index 345d14a..fb17106 100644
--- a/io_scene_x/export_x.py
+++ b/io_scene_x/export_x.py
@@ -1144,15 +1144,10 @@ 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()



More information about the Bf-extensions-cvs mailing list