mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[ts] Fix AnimationState complete event bad porting from 88b009c
This commit is contained in:
parent
a8a7ba878a
commit
f0fbceb6f7
@ -441,7 +441,7 @@ export class AnimationState {
|
|||||||
complete = true;
|
complete = true;
|
||||||
else {
|
else {
|
||||||
const cycles = Math.floor(entry.trackTime / duration);
|
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
|
} else
|
||||||
complete = animationTime >= animationEnd && entry.animationLast < animationEnd;
|
complete = animationTime >= animationEnd && entry.animationLast < animationEnd;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user