mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[haxe] Fix AnimationState complete event bad porting from 88b009c
This commit is contained in:
parent
8e20a5e02b
commit
ed75b2eb61
@ -465,7 +465,7 @@ class AnimationState {
|
||||
complete = true;
|
||||
else {
|
||||
var cycles:Float = 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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user