diff --git a/spine-haxe/spine-haxe/spine/animation/TrackEntry.hx b/spine-haxe/spine-haxe/spine/animation/TrackEntry.hx index 4764cea84..042111e73 100644 --- a/spine-haxe/spine-haxe/spine/animation/TrackEntry.hx +++ b/spine-haxe/spine-haxe/spine/animation/TrackEntry.hx @@ -112,10 +112,16 @@ class TrackEntry implements Poolable { /** Returns true if this track entry has been applied at least once. *

* See {@link AnimationState#apply(Skeleton)}. */ - public function wasApplied () { + public function wasApplied() { return nextTrackLast != -1; } + /** Returns true if there is a {@link #getNext()} track entry and it will become the current track entry during the next + * {@link AnimationState#update(float)}. */ + public function isNextReady():Bool { + return next != null && nextTrackLast - next.delay >= 0; + } + public function reset():Void { next = null; previous = null;