Skip to content

Commit f0fbceb

Browse files
committed
[ts] Fix AnimationState complete event bad porting from 88b009c
1 parent a8a7ba8 commit f0fbceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spine-ts/spine-core/src/AnimationState.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export class AnimationState {
441441
complete = true;
442442
else {
443443
const cycles = Math.floor(entry.trackTime / duration);
444-
complete = cycles > 0 && cycles > Math.floor(entry.trackTime / duration);
444+
complete = cycles > 0 && cycles > Math.floor(entry.trackLast / duration);
445445
}
446446
} else
447447
complete = animationTime >= animationEnd && entry.animationLast < animationEnd;

0 commit comments

Comments
 (0)