From b77202fd1c6c7dbaddf707a4116f2aa7c3759db8 Mon Sep 17 00:00:00 2001 From: Shlainn Date: Fri, 10 Feb 2012 16:53:37 +0100 Subject: [PATCH] * Fixed another bit of M2 Animation --- src/Client/GUI/CM2Mesh.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Client/GUI/CM2Mesh.cpp b/src/Client/GUI/CM2Mesh.cpp index c1895f1..62324fe 100755 --- a/src/Client/GUI/CM2Mesh.cpp +++ b/src/Client/GUI/CM2Mesh.cpp @@ -151,7 +151,9 @@ void CM2Mesh::buildAllAnimatedMatrices(SJoint *joint, SJoint *parentJoint) } else { - //If this joint has no animation we don't care. I think. --shlainn + //If this joint has no animation we care a lot! Set it to starting position. --shlainn + joint->GlobalAnimatedMatrix=core::matrix4(); + joint->GlobalAnimatedMatrix.setTranslation(joint->LocalMatrix.getTranslation()); } if(parentJoint)