Finish up test chamber 11
This commit is contained in:
parent
392f9adf9c
commit
2cf701f863
Binary file not shown.
|
@ -190,7 +190,7 @@ void skAnimatorStep(struct SKAnimator* animator, float deltaTime) {
|
||||||
|
|
||||||
float duration = currentClip->nFrames / currentClip->fps;
|
float duration = currentClip->nFrames / currentClip->fps;
|
||||||
|
|
||||||
if (animator->currentTime >= duration || animator->currentTime < 0.0f) {
|
if ((animator->currentTime >= duration && deltaTime) > 0.0f || (animator->currentTime < 0.0f && deltaTime < 0.0f)) {
|
||||||
if (animator->flags & SKAnimatorFlagsLoop) {
|
if (animator->flags & SKAnimatorFlagsLoop) {
|
||||||
animator->currentTime = mathfMod(animator->currentTime, duration);
|
animator->currentTime = mathfMod(animator->currentTime, duration);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue