diff options
author | aap <aap@papnet.eu> | 2020-05-08 20:58:40 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-08 20:58:40 +0200 |
commit | f12e76fa135db3ca0a98c441cc3f5c0a4a14549d (patch) | |
tree | 29774d79de544892972dd8b1e31b5404353dd1ca /src/animation/AnimBlendAssociation.cpp | |
parent | a8f1505517f1baf061fe6b545906eaed09f851b8 (diff) |
more small fixes
Diffstat (limited to 'src/animation/AnimBlendAssociation.cpp')
-rw-r--r-- | src/animation/AnimBlendAssociation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/animation/AnimBlendAssociation.cpp b/src/animation/AnimBlendAssociation.cpp index daca7d68..8c99b694 100644 --- a/src/animation/AnimBlendAssociation.cpp +++ b/src/animation/AnimBlendAssociation.cpp @@ -147,11 +147,11 @@ CAnimBlendAssociation::Start(float time) SetCurrentTime(time); } -void +bool CAnimBlendAssociation::UpdateTime(float timeDelta, float relSpeed) { if(!IsRunning()) - return; + return true; timeStep = (flags & ASSOC_MOVEMENT ? relSpeed*hierarchy->totalLength : speed) * timeDelta; currentTime += timeStep; @@ -174,6 +174,7 @@ CAnimBlendAssociation::UpdateTime(float timeDelta, float relSpeed) } } } + return true; } // return whether we still exist after this function |