diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-07-18 13:30:51 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-07-18 13:30:51 +0300 |
commit | 87eb96453a405bfa0fbfffb57c9d6cfc74acfb70 (patch) | |
tree | 3e91115fa0a99c22eb0293b5c4fec812eeaa11fc /src/animation | |
parent | dd717b2d933a024da14e8232fadc1302064ab2bf (diff) |
Add compatibility with RW 3.4
Diffstat (limited to 'src/animation')
-rw-r--r-- | src/animation/RpAnimBlend.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/animation/RpAnimBlend.cpp b/src/animation/RpAnimBlend.cpp index 8671e95d..6739f56a 100644 --- a/src/animation/RpAnimBlend.cpp +++ b/src/animation/RpAnimBlend.cpp @@ -169,7 +169,11 @@ RpAnimBlendClumpInitSkinned(RpClump *clump) for(i = 0; i < numBones; i++){ frames[i].nodeID = HIERNODEID(hier, i); frames[i].resetPos = boneTab[i]; +#ifdef LIBRW frames[i].hanimFrame = (RpHAnimStdKeyFrame*)rpHANIMHIERARCHYGETINTERPFRAME(hier, i); +#else + frames[i].hanimFrame = (RpHAnimStdKeyFrame*)rtANIMGETINTERPFRAME(hier->currentAnim, i); +#endif } clumpData->ForAllFrames(FrameInitCBskin, nil); clumpData->frames[0].flag |= AnimBlendFrameData::VELOCITY_EXTRACTION; |