mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-19 00:06:42 +08:00
[libgdx] Fixed issue with mixDuration on dip mix entry being 0. Caused NaNs when applying mixing from
This commit is contained in:
parent
b9b2d81c65
commit
6734145060
@ -248,7 +248,7 @@ public class AnimationState {
|
||||
first = true;
|
||||
alpha = alphaDip;
|
||||
TrackEntry dipMix = (TrackEntry)timelineDipMix[i];
|
||||
if (dipMix != null) alpha *= Math.max(0, 1 - dipMix.mixTime / dipMix.mixDuration);
|
||||
if (dipMix != null && dipMix.mixDuration > 0) alpha *= Math.max(0, 1 - dipMix.mixTime / dipMix.mixDuration);
|
||||
break;
|
||||
}
|
||||
if (timeline instanceof RotateTimeline)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user