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:
authorCampbell Barton <ideasman42@gmail.com>2015-04-15 07:38:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-04-15 07:38:10 +0300
commit524140ae5c9f4b0c51d4dd381be30112f3a41104 (patch)
treefd4482d1ade4626390195d1d7525c8d558d6a34f
parente66cdc9f40ef48fab506e801ec1e313db2487e0a (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.py5
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()