summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-22 08:58:49 +0200
committeraap <aap@papnet.eu>2020-06-22 08:58:49 +0200
commit3989e3df183a9b1df26c46e2a5855841f6837931 (patch)
tree5b8f2d024c416a33b6874b7eeb2140a131bfae23
parentFOV fix (diff)
downloadre3-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
-rw-r--r--src/animation/AnimBlendNode.cpp3
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;