Wait until end of current loop when queuing an animation.

closes #626
This commit is contained in:
NathanSweet 2016-08-19 11:20:32 +02:00
parent 296d019bac
commit 5191cf4f5f

View File

@ -302,7 +302,7 @@ public class AnimationState {
if (delay <= 0) {
if (last != null)
delay += last.endTime - data.getMix(last.animation, animation);
delay += last.endTime * (1 + (int)(last.time / last.endTime)) - data.getMix(last.animation, animation);
else
delay = 0;
}