Fixed lastTime not being set.

This commit is contained in:
NathanSweet 2013-10-03 20:03:11 +02:00
parent 45c3487098
commit bc259b390e

View File

@ -204,6 +204,7 @@ public class AnimationState {
entry.animation = animation;
entry.loop = loop;
entry.time = 0;
entry.lastTime = 0;
entry.endTime = animation.getDuration();
setCurrent(trackIndex, entry);
return entry;
@ -223,6 +224,7 @@ public class AnimationState {
entry.animation = animation;
entry.loop = loop;
entry.time = 0;
entry.lastTime = 0;
entry.endTime = animation.getDuration();
TrackEntry last = expandToIndex(trackIndex);