mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-19 00:06:42 +08:00
[ts] Closes #1401, JIT bug in Safari on iOS 9.
This commit is contained in:
parent
f6f3ed9542
commit
ec903efb2e
@ -1442,8 +1442,10 @@ var spine;
|
|||||||
var timelineCount = current.animation.timelines.length;
|
var timelineCount = current.animation.timelines.length;
|
||||||
var timelines = current.animation.timelines;
|
var timelines = current.animation.timelines;
|
||||||
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
||||||
for (var ii = 0; ii < timelineCount; ii++)
|
for (var ii = 0; ii < timelineCount; ii++) {
|
||||||
|
spine.Utils.webkit602BugfixHelper(mix, blend);
|
||||||
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var timelineMode = current.timelineMode;
|
var timelineMode = current.timelineMode;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1442,8 +1442,10 @@ var spine;
|
|||||||
var timelineCount = current.animation.timelines.length;
|
var timelineCount = current.animation.timelines.length;
|
||||||
var timelines = current.animation.timelines;
|
var timelines = current.animation.timelines;
|
||||||
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
||||||
for (var ii = 0; ii < timelineCount; ii++)
|
for (var ii = 0; ii < timelineCount; ii++) {
|
||||||
|
spine.Utils.webkit602BugfixHelper(mix, blend);
|
||||||
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var timelineMode = current.timelineMode;
|
var timelineMode = current.timelineMode;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1442,8 +1442,10 @@ var spine;
|
|||||||
var timelineCount = current.animation.timelines.length;
|
var timelineCount = current.animation.timelines.length;
|
||||||
var timelines = current.animation.timelines;
|
var timelines = current.animation.timelines;
|
||||||
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
||||||
for (var ii = 0; ii < timelineCount; ii++)
|
for (var ii = 0; ii < timelineCount; ii++) {
|
||||||
|
spine.Utils.webkit602BugfixHelper(mix, blend);
|
||||||
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var timelineMode = current.timelineMode;
|
var timelineMode = current.timelineMode;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1442,8 +1442,10 @@ var spine;
|
|||||||
var timelineCount = current.animation.timelines.length;
|
var timelineCount = current.animation.timelines.length;
|
||||||
var timelines = current.animation.timelines;
|
var timelines = current.animation.timelines;
|
||||||
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
||||||
for (var ii = 0; ii < timelineCount; ii++)
|
for (var ii = 0; ii < timelineCount; ii++) {
|
||||||
|
spine.Utils.webkit602BugfixHelper(mix, blend);
|
||||||
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var timelineMode = current.timelineMode;
|
var timelineMode = current.timelineMode;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1442,8 +1442,10 @@ var spine;
|
|||||||
var timelineCount = current.animation.timelines.length;
|
var timelineCount = current.animation.timelines.length;
|
||||||
var timelines = current.animation.timelines;
|
var timelines = current.animation.timelines;
|
||||||
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
||||||
for (var ii = 0; ii < timelineCount; ii++)
|
for (var ii = 0; ii < timelineCount; ii++) {
|
||||||
|
spine.Utils.webkit602BugfixHelper(mix, blend);
|
||||||
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var timelineMode = current.timelineMode;
|
var timelineMode = current.timelineMode;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1442,8 +1442,10 @@ var spine;
|
|||||||
var timelineCount = current.animation.timelines.length;
|
var timelineCount = current.animation.timelines.length;
|
||||||
var timelines = current.animation.timelines;
|
var timelines = current.animation.timelines;
|
||||||
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
if ((i == 0 && mix == 1) || blend == spine.MixBlend.add) {
|
||||||
for (var ii = 0; ii < timelineCount; ii++)
|
for (var ii = 0; ii < timelineCount; ii++) {
|
||||||
|
spine.Utils.webkit602BugfixHelper(mix, blend);
|
||||||
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var timelineMode = current.timelineMode;
|
var timelineMode = current.timelineMode;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -160,8 +160,13 @@ module spine {
|
|||||||
let timelineCount = current.animation.timelines.length;
|
let timelineCount = current.animation.timelines.length;
|
||||||
let timelines = current.animation.timelines;
|
let timelines = current.animation.timelines;
|
||||||
if ((i == 0 && mix == 1) || blend == MixBlend.add) {
|
if ((i == 0 && mix == 1) || blend == MixBlend.add) {
|
||||||
for (let ii = 0; ii < timelineCount; ii++)
|
for (let ii = 0; ii < timelineCount; ii++) {
|
||||||
|
// Fixes issue #302 on IOS9 where mix, blend sometimes became undefined and caused assets
|
||||||
|
// to sometimes stop rendering when using color correction, as their RGBA values become NaN.
|
||||||
|
// (https://github.com/pixijs/pixi-spine/issues/302)
|
||||||
|
Utils.webkit602BugfixHelper(mix, blend);
|
||||||
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, MixDirection.mixIn);
|
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, MixDirection.mixIn);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
let timelineMode = current.timelineMode;
|
let timelineMode = current.timelineMode;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user