mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 19:15:41 +00:00
anim fix
This commit is contained in:
parent
60f736f20f
commit
3989e3df18
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue