mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
parent
f6cf88103c
commit
7dbf7c5268
@ -505,12 +505,13 @@ public class AnimationState {
|
|||||||
/** Sets an empty animation for every track, discarding any queued animations, and mixes to it over the specified mix
|
/** Sets an empty animation for every track, discarding any queued animations, and mixes to it over the specified mix
|
||||||
* duration. */
|
* duration. */
|
||||||
public void setEmptyAnimations (float mixDuration) {
|
public void setEmptyAnimations (float mixDuration) {
|
||||||
|
boolean oldDrainDisabled = queue.drainDisabled;
|
||||||
queue.drainDisabled = true;
|
queue.drainDisabled = true;
|
||||||
for (int i = 0, n = tracks.size; i < n; i++) {
|
for (int i = 0, n = tracks.size; i < n; i++) {
|
||||||
TrackEntry current = tracks.get(i);
|
TrackEntry current = tracks.get(i);
|
||||||
if (current != null) setEmptyAnimation(current.trackIndex, mixDuration);
|
if (current != null) setEmptyAnimation(current.trackIndex, mixDuration);
|
||||||
}
|
}
|
||||||
queue.drainDisabled = false;
|
queue.drainDisabled = oldDrainDisabled;
|
||||||
queue.drain();
|
queue.drain();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user