This commit is contained in:
Glenn Maynard
2006-08-31 06:55:49 +00:00
parent 334a0ec26d
commit 6c7649d8a4
+1 -2
View File
@@ -643,8 +643,7 @@ void Model::SetBones( const msAnimation* pAnimation, float fFrame, vector<myBone
RageVector3 vPos;
if( pLastPositionKey != NULL && pThisPositionKey != NULL )
{
float d = pThisPositionKey->fTime - pLastPositionKey->fTime;
float s = (fFrame - pLastPositionKey->fTime) / d;
const float s = SCALE( fFrame, pLastPositionKey->fTime, pThisPositionKey->fTime, 0, 1 );
vPos = pLastPositionKey->Position + (pThisPositionKey->Position - pLastPositionKey->Position) * s;
}
else if( pLastPositionKey == NULL )