aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/CSkinnedMesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Irrlicht/CSkinnedMesh.cpp')
-rw-r--r--source/Irrlicht/CSkinnedMesh.cpp21
1 files changed, 3 insertions, 18 deletions
diff --git a/source/Irrlicht/CSkinnedMesh.cpp b/source/Irrlicht/CSkinnedMesh.cpp
index 07e86d6..75e2ca6 100644
--- a/source/Irrlicht/CSkinnedMesh.cpp
+++ b/source/Irrlicht/CSkinnedMesh.cpp
@@ -1347,24 +1347,9 @@ void CSkinnedMesh::recoverJointsFromMesh(core::array<IBoneSceneNode*> &jointChil
{
IBoneSceneNode* node=jointChildSceneNodes[i];
SJoint *joint=AllJoints[i];
-
- if ( joint->UseAnimationFrom ) // Seems to work better (else solution seems to mess up sometimes) and would be faster. Any disadvantage?
- {
- node->setPosition(joint->Animatedposition);
- core::quaternion qrot = joint->Animatedrotation;
- qrot.W *= -1.f; // Animation system uses right-handed rotations? Argh...
- irr::core::vector3df euler;
- qrot.toEuler(euler);
- euler *= core::RADTODEG;
- node->setRotation(euler);
- node->setScale(joint->Animatedscale);
- }
- else
- {
- node->setPosition(joint->LocalAnimatedMatrix.getTranslation());
- node->setRotation(joint->LocalAnimatedMatrix.getRotationDegrees());
- node->setScale(joint->LocalAnimatedMatrix.getScale());
- }
+ node->setPosition(joint->LocalAnimatedMatrix.getTranslation());
+ node->setRotation(joint->LocalAnimatedMatrix.getRotationDegrees());
+ node->setScale(joint->LocalAnimatedMatrix.getScale());
node->positionHint=joint->positionHint;
node->scaleHint=joint->scaleHint;