diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-06-20 20:26:27 +0300 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-06-20 20:26:27 +0300 |
commit | cc60ad1946794bfa8cc8ae86e62829035ff6f360 (patch) | |
tree | 2710ee93888a29547e66887e3977a4fb2f375dc4 /src/animation/AnimBlendAssociation.cpp | |
parent | 2d2833f2e4f038f37cf75025e98476a4f1ad9a13 (diff) |
ducking & anim fix
Diffstat (limited to 'src/animation/AnimBlendAssociation.cpp')
-rw-r--r-- | src/animation/AnimBlendAssociation.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/animation/AnimBlendAssociation.cpp b/src/animation/AnimBlendAssociation.cpp index 9a29601b..a6c679eb 100644 --- a/src/animation/AnimBlendAssociation.cpp +++ b/src/animation/AnimBlendAssociation.cpp @@ -133,8 +133,11 @@ CAnimBlendAssociation::SetCurrentTime(float time) int i; for(currentTime = time; currentTime >= hierarchy->totalLength; currentTime -= hierarchy->totalLength) - if(!IsRepeating()) - return; + if (!IsRepeating()) { + currentTime = hierarchy->totalLength; + break; + } + CAnimManager::UncompressAnimation(hierarchy); if(hierarchy->compressed2){ for(i = 0; i < numNodes; i++) |