| 13 | } |
| 14 | |
| 15 | f32 JPAKeyBlock::calc(f32 currentFrame) |
| 16 | { |
| 17 | if (mDataStart->_0B != '\0') |
| 18 | { |
| 19 | int lastKeyFrameIndex = (int)mKeyFrameData[(mDataStart->mKeyFrameCount - 1) * 4] + 1; |
| 20 | int currentFrameRatio = ((int)currentFrame / lastKeyFrameIndex); |
| 21 | currentFrame = currentFrame - (currentFrameRatio * lastKeyFrameIndex); |
| 22 | } |
| 23 | |
| 24 | return JPACalcKeyAnmValue(currentFrame, mDataStart->mKeyFrameCount, mKeyFrameData); |
| 25 | } |
no test coverage detected