This commit is contained in:
Glenn Maynard
2006-08-31 06:51:23 +00:00
parent eb9a278c3e
commit b4edcdb7dd
+3 -3
View File
@@ -671,16 +671,16 @@ void Model::SetBones( const msAnimation* pAnimation, float fFrame, vector<myBone
}
RageVector4 vRot;
if( pLastRotationKey != 0 && pThisRotationKey != 0 )
if( pLastRotationKey != NULL && pThisRotationKey != NULL )
{
const float s = SCALE( fFrame, pLastRotationKey->fTime, pThisRotationKey->fTime, 0, 1 );
RageQuatSlerp( &vRot, pLastRotationKey->Rotation, pThisRotationKey->Rotation, s );
}
else if( pLastRotationKey == 0 )
else if( pLastRotationKey == NULL )
{
vRot = pThisRotationKey->Rotation;
}
else if( pThisRotationKey == 0 )
else if( pThisRotationKey == NULL )
{
vRot = pLastRotationKey->Rotation;
}