mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ts] Ported AnimationState change
This commit is contained in:
parent
dab4c27da7
commit
d34f7c7b11
@ -82,14 +82,11 @@ module spine {
|
|||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (current.trackLast >= current.trackEnd && current.mixingFrom == null) {
|
||||||
// Clear the track when there is no next entry, the track end time is reached, and there is no mixingFrom.
|
tracks[i] = null;
|
||||||
if (current.trackLast >= current.trackEnd && current.mixingFrom == null) {
|
this.queue.end(current);
|
||||||
tracks[i] = null;
|
this.disposeNext(current);
|
||||||
this.queue.end(current);
|
continue;
|
||||||
this.disposeNext(current);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.updateMixingFrom(current, delta);
|
this.updateMixingFrom(current, delta);
|
||||||
|
|
||||||
@ -132,7 +129,7 @@ module spine {
|
|||||||
let mix = current.alpha;
|
let mix = current.alpha;
|
||||||
if (current.mixingFrom != null)
|
if (current.mixingFrom != null)
|
||||||
mix *= this.applyMixingFrom(current, skeleton);
|
mix *= this.applyMixingFrom(current, skeleton);
|
||||||
else if (current.trackTime >= current.trackEnd)
|
else if (current.trackTime >= current.trackEnd && current.next == null)
|
||||||
mix = 0;
|
mix = 0;
|
||||||
|
|
||||||
// Apply current entry.
|
// Apply current entry.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user