mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-16 02:39:01 +00:00
fix anims again
This commit is contained in:
parent
592a6aef0b
commit
c72fab15b4
1 changed files with 4 additions and 4 deletions
|
@ -98,18 +98,18 @@ CAnimBlendNode::FindKeyFrame(float t)
|
||||||
remainingTime = 0.0f;
|
remainingTime = 0.0f;
|
||||||
}else{
|
}else{
|
||||||
// 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;
|
||||||
if(frameA + 1 >= sequence->numFrames){
|
if (frameA + 1 >= sequence->numFrames) {
|
||||||
// reached end of animation
|
// reached end of animation
|
||||||
if(!association->IsRepeating()){
|
if (!association->IsRepeating()) {
|
||||||
CalcDeltas();
|
CalcDeltas();
|
||||||
remainingTime = 0.0f;
|
remainingTime = 0.0f;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
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