diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-15 07:38:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-15 07:38:10 +0300 |
commit | 524140ae5c9f4b0c51d4dd381be30112f3a41104 (patch) | |
tree | fd4482d1ade4626390195d1d7525c8d558d6a34f | |
parent | e66cdc9f40ef48fab506e801ec1e313db2487e0a (diff) |
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.
-rw-r--r-- | io_scene_x/export_x.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/io_scene_x/export_x.py b/io_scene_x/export_x.py index 345d14ab..fb17106e 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() |