mirror of
https://github.com/GTAmodding/re3.git
synced 2021-02-19 17:49:54 +01:00
anim fix
This commit is contained in:
parent
60f736f20f
commit
3989e3df18
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user