mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Fixed interruptAlpha NaN when there is no mixingFrom.
This commit is contained in:
parent
6140ea31e9
commit
2349356584
@ -414,7 +414,11 @@ public class AnimationState {
|
|||||||
if (interrupt) queue.interrupt(from);
|
if (interrupt) queue.interrupt(from);
|
||||||
current.mixingFrom = from;
|
current.mixingFrom = from;
|
||||||
current.mixTime = 0;
|
current.mixTime = 0;
|
||||||
current.interruptAlpha *= Math.min(1, from.mixTime / from.mixDuration); // Store interrupted mix percentage.
|
|
||||||
|
// Store the interrupted mix percentage.
|
||||||
|
if (from.mixingFrom != null && from.mixDuration > 0)
|
||||||
|
current.interruptAlpha *= Math.min(1, from.mixTime / from.mixDuration);
|
||||||
|
|
||||||
from.timelinesRotation.clear(); // Reset rotation for mixing out, in case entry was mixed in.
|
from.timelinesRotation.clear(); // Reset rotation for mixing out, in case entry was mixed in.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user