Browse Source

Merge pull request #503 from Hoikas/fix-anims

Fix Jittering Animations
Joseph Davies 10 years ago
parent
commit
d7f1561114
  1. 2
      Sources/Plasma/PubUtilLib/plInterp/hsInterp.cpp

2
Sources/Plasma/PubUtilLib/plInterp/hsInterp.cpp

@ -404,7 +404,7 @@ void hsInterp::GetBoundaryKeyFrames(float time, uint32_t numKeys, void *keys, ui
{
hsAssert(numKeys>1, "Must have more than 1 keyframe");
int k1, k2;
uint16_t frame = (uint16_t)(time * MAX_FRAMES_PER_SEC);
float frame = time * MAX_FRAMES_PER_SEC;
// boundary case, past end
if (frame > GetKey(numKeys-1, keys, size)->fFrame)

Loading…
Cancel
Save