diff --git a/game/anim/Anim_Blend.cpp b/game/anim/Anim_Blend.cpp index 2bcd452..0cbd4af 100644 --- a/game/anim/Anim_Blend.cpp +++ b/game/anim/Anim_Blend.cpp @@ -4472,16 +4472,18 @@ bool idAnimator::GetJointLocalTransform( jointHandle_t jointHandle, int currentT // FIXME: overkill CreateFrame( currentTime, false ); - if ( jointHandle > 0 ) { - idJointMat m = joints[ jointHandle ]; - m /= joints[ modelJoints[ jointHandle ].parentNum ]; - offset = m.ToVec3(); - axis = m.ToMat3(); - } else { + if ( jointHandle == 0 ) { offset = joints[ jointHandle ].ToVec3(); axis = joints[ jointHandle ].ToMat3(); + + return true; } + idJointMat m = joints[ jointHandle ]; + m /= joints[ modelJoints[ jointHandle ].parentNum ]; + offset = m.ToVec3(); + axis = m.ToMat3(); + return true; }