diff options
author | aap <aap@papnet.eu> | 2020-06-22 08:58:49 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-06-22 08:58:49 +0200 |
commit | 3989e3df183a9b1df26c46e2a5855841f6837931 (patch) | |
tree | 5b8f2d024c416a33b6874b7eeb2140a131bfae23 /src | |
parent | FOV fix (diff) | |
download | re3-3989e3df183a9b1df26c46e2a5855841f6837931.tar re3-3989e3df183a9b1df26c46e2a5855841f6837931.tar.gz re3-3989e3df183a9b1df26c46e2a5855841f6837931.tar.bz2 re3-3989e3df183a9b1df26c46e2a5855841f6837931.tar.lz re3-3989e3df183a9b1df26c46e2a5855841f6837931.tar.xz re3-3989e3df183a9b1df26c46e2a5855841f6837931.tar.zst re3-3989e3df183a9b1df26c46e2a5855841f6837931.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/animation/AnimBlendNode.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/animation/AnimBlendNode.cpp b/src/animation/AnimBlendNode.cpp index 860046e8..63665873 100644 --- a/src/animation/AnimBlendNode.cpp +++ b/src/animation/AnimBlendNode.cpp @@ -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; |