Skip to content

Commit

Permalink
[ts] Fix AnimationState complete event bad porting from 88b009c
Browse files Browse the repository at this point in the history
  • Loading branch information
davidetan committed Apr 24, 2024
1 parent a8a7ba8 commit f0fbceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine-ts/spine-core/src/AnimationState.ts
Expand Up @@ -441,7 +441,7 @@ export class AnimationState {
complete = true;
else {
const cycles = Math.floor(entry.trackTime / duration);
complete = cycles > 0 && cycles > Math.floor(entry.trackTime / duration);
complete = cycles > 0 && cycles > Math.floor(entry.trackLast / duration);
}
} else
complete = animationTime >= animationEnd && entry.animationLast < animationEnd;
Expand Down

0 comments on commit f0fbceb

Please sign in to comment.