This commit is contained in:
aap 2020-06-22 08:58:49 +02:00
parent 60f736f20f
commit 3989e3df18

View File

@ -102,7 +102,6 @@ CAnimBlendNode::FindKeyFrame(float t)
// advance until t is between frameB and frameA
while(t > sequence->GetKeyFrame(frameA)->deltaTime){
t -= sequence->GetKeyFrame(frameA)->deltaTime;
frameA++;
if(frameA + 1 >= sequence->numFrames){
// reached end of animation
if(!association->IsRepeating()){
@ -112,7 +111,7 @@ CAnimBlendNode::FindKeyFrame(float t)
}
frameA = 0;
}
frameB = frameA;
frameB = frameA++;
}
remainingTime = sequence->GetKeyFrame(frameA)->deltaTime - t;