mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ts] Fixed issue with mixDuration on dip mix entry being 0. Caused NaNs when applying mixing from
This commit is contained in:
parent
6734145060
commit
5b262648ca
@ -220,7 +220,7 @@ module spine {
|
|||||||
first = true;
|
first = true;
|
||||||
alpha = alphaDip;
|
alpha = alphaDip;
|
||||||
let dipMix = timelineDipMix[i];
|
let dipMix = 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;
|
break;
|
||||||
}
|
}
|
||||||
if (timeline instanceof RotateTimeline)
|
if (timeline instanceof RotateTimeline)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user