mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
why Macro?
This commit is contained in:
parent
095c68678a
commit
8baf3a6321
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue