mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +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;
|
||||
alpha = alphaDip;
|
||||
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;
|
||||
}
|
||||
if (timeline instanceof RotateTimeline)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user