mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[as3] Ported latest anim state change
This commit is contained in:
parent
e4ff874172
commit
8335ea6af7
Binary file not shown.
@ -131,9 +131,13 @@ package spine.animation {
|
|||||||
|
|
||||||
// Require mixTime > 0 to ensure the mixing from entry was applied at least once.
|
// Require mixTime > 0 to ensure the mixing from entry was applied at least once.
|
||||||
if (entry.mixTime > 0 && (entry.mixTime >= entry.mixDuration || entry.timeScale == 0)) {
|
if (entry.mixTime > 0 && (entry.mixTime >= entry.mixDuration || entry.timeScale == 0)) {
|
||||||
if (animationCount > 6 && from.mixingFrom == null) { // Limit the mixing from linked list.
|
if (animationCount > 5 && from.mixingFrom == null) {
|
||||||
entry.mixingFrom = null;
|
// Limit linked list by speeding up and removing old entries.
|
||||||
queue.end(from);
|
entry.interruptAlpha = Math.max(0, entry.interruptAlpha - delta * 0.66);
|
||||||
|
if (entry.interruptAlpha <= 0) {
|
||||||
|
entry.mixingFrom = null;
|
||||||
|
queue.end(from);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return finished;
|
return finished;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user