From e2bab445918d7f55f1a35ea05a3ea9f7668d0c3d Mon Sep 17 00:00:00 2001 From: Shlainn Date: Tue, 8 Nov 2011 15:18:05 +0100 Subject: [PATCH] * Fix some animations (Trees in Ratchet, Gryphon Roosts) --- src/Client/GUI/CM2Mesh.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client/GUI/CM2Mesh.cpp b/src/Client/GUI/CM2Mesh.cpp index 29a7ac3..c25d369 100755 --- a/src/Client/GUI/CM2Mesh.cpp +++ b/src/Client/GUI/CM2Mesh.cpp @@ -151,8 +151,9 @@ void CM2Mesh::buildAllAnimatedMatrices(SJoint *joint, SJoint *parentJoint) } else { - joint->GlobalAnimatedMatrix=core::matrix4(); + //If this joint has no animation we don't care. I think. --shlainn } + if(parentJoint) joint->GlobalAnimatedMatrix=parentJoint->GlobalAnimatedMatrix*joint->GlobalAnimatedMatrix; for (u32 j=0; jChildren.size(); ++j)