why Macro?

This commit is contained in:
Silent 2017-02-26 13:02:24 +01:00
parent 095c68678a
commit 8baf3a6321

View file

@ -932,9 +932,11 @@ RwBool GTARtAnimInterpolatorSetCurrentAnim(RtAnimInterpolator* animI, RtAnimAnim
animI->keyFrameAddCB = info->keyFrameAddCB; animI->keyFrameAddCB = info->keyFrameAddCB;
for ( RwInt32 i = 0; i < animI->numNodes; ++i ) for ( RwInt32 i = 0; i < animI->numNodes; ++i )
RtAnimKeyFrameInterpolateMacro( animI, rtANIMGETINTERPFRAME( animI, i ), {
RtAnimKeyFrameInterpolate( animI, rtANIMGETINTERPFRAME( animI, i ),
(RwChar*)anim->pFrames + i * animI->currentAnimKeyFrameSize, (RwChar*)anim->pFrames + i * animI->currentAnimKeyFrameSize,
(RwChar*)anim->pFrames + ( i + animI->numNodes) * animI->currentAnimKeyFrameSize, 0.0f ); (RwChar*)anim->pFrames + ( i + animI->numNodes) * animI->currentAnimKeyFrameSize, 0.0f );
}
animI->pNextFrame = (RwChar*)anim->pFrames + 2 * animI->currentAnimKeyFrameSize * animI->numNodes; animI->pNextFrame = (RwChar*)anim->pFrames + 2 * animI->currentAnimKeyFrameSize * animI->numNodes;