1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-24 12:10:01 +00:00
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 // advance until t is between frameB and frameA
while(t > sequence->GetKeyFrame(frameA)->deltaTime){ while(t > sequence->GetKeyFrame(frameA)->deltaTime){
t -= sequence->GetKeyFrame(frameA)->deltaTime; t -= sequence->GetKeyFrame(frameA)->deltaTime;
frameA++;
if(frameA + 1 >= sequence->numFrames){ if(frameA + 1 >= sequence->numFrames){
// reached end of animation // reached end of animation
if(!association->IsRepeating()){ if(!association->IsRepeating()){
@ -112,7 +111,7 @@ CAnimBlendNode::FindKeyFrame(float t)
} }
frameA = 0; frameA = 0;
} }
frameB = frameA; frameB = frameA++;
} }
remainingTime = sequence->GetKeyFrame(frameA)->deltaTime - t; remainingTime = sequence->GetKeyFrame(frameA)->deltaTime - t;