This commit is contained in:
badlogic 2018-03-28 14:00:27 +02:00
commit 90554dff04
2 changed files with 6 additions and 6 deletions

View File

@ -528,13 +528,13 @@ namespace Spine {
float duration = last.animationEnd - last.animationStart;
if (duration != 0) {
if (last.loop) {
delay += duration * (1 + (int)(last.trackTime / duration));
delay += duration * (1 + (int)(last.trackTime / duration)); // Completion of next loop.
} else {
delay += duration;
delay += Math.Max(duration, last.trackTime); // After duration, else next update.
}
delay -= data.GetMix(last.animation, animation);
} else
delay = 0;
delay = last.trackTime; // Next update.
}
}

View File

@ -544,12 +544,12 @@ public class AnimationState {
float duration = last.animationEnd - last.animationStart;
if (duration != 0) {
if (last.loop)
delay += duration * (1 + (int)(last.trackTime / duration));
delay += duration * (1 + (int)(last.trackTime / duration)); // Completion of next loop.
else
delay += duration;
delay += Math.max(duration, last.trackTime); // After duration, else next update.
delay -= data.getMix(last.animation, animation);
} else
delay = 0;
delay = last.trackTime; // Next update.
}
}