mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 11:34:14 +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