mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[libgdx] Avoid setting a NaN mixAlpha.
http://esotericsoftware.com/forum/UNITY-5-4-1f1-BUG-ArithmeticException-NAN-7135?p=34824#p34824
This commit is contained in:
parent
fc33bf9e98
commit
a6ac746b4f
@ -385,7 +385,7 @@ public class AnimationState {
|
||||
from.timelinesRotation.clear(); // Reset rotation for mixing out, in case entry was mixed in.
|
||||
|
||||
// If not completely mixed in, set mixAlpha so mixing out happens from current mix to zero.
|
||||
if (from.mixingFrom != null) current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
||||
if (from.mixingFrom != null && from.mixDuration > 0) current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
||||
}
|
||||
|
||||
queue.start(current);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user