mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-17 20:41:38 +08:00
[as3] Ported latest AnimationState changes, see c512ee5d595076842cbb12d95a3a7f06792b81d1
This commit is contained in:
parent
e8fa99557e
commit
0b30e94241
@ -172,6 +172,7 @@ public class AnimationState {
|
||||
}
|
||||
}
|
||||
queueEvents(current, animationTime);
|
||||
events.length = 0;
|
||||
current.nextAnimationLast = animationTime;
|
||||
current.nextTrackLast = current.trackTime;
|
||||
}
|
||||
@ -217,7 +218,8 @@ public class AnimationState {
|
||||
}
|
||||
}
|
||||
|
||||
queueEvents(from, animationTime);
|
||||
if (entry.mixDuration > 0) queueEvents(from, animationTime);
|
||||
events.length = 0;
|
||||
from.nextAnimationLast = animationTime;
|
||||
from.nextTrackLast = from.trackTime;
|
||||
|
||||
@ -317,8 +319,7 @@ public class AnimationState {
|
||||
event = events[i];
|
||||
if (event.time < animationStart) continue; // Discard events outside animation start/end.
|
||||
queue.event(entry, events[i]);
|
||||
}
|
||||
events.length = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public function clearTracks ():void {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user