[ts] Port of additive blending fix, see #1322.

This commit is contained in:
badlogic 2019-04-04 14:12:38 +02:00
parent 1a4e311522
commit 8f80ceec7c
14 changed files with 8184 additions and 8184 deletions

View File

@ -1403,7 +1403,7 @@ var spine;
var animationLast = current.animationLast, animationTime = current.getAnimationTime();
var timelineCount = current.animation.timelines.length;
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++)
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection["in"]);
}

File diff suppressed because one or more lines are too long

View File

@ -1403,7 +1403,7 @@ var spine;
var animationLast = current.animationLast, animationTime = current.getAnimationTime();
var timelineCount = current.animation.timelines.length;
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++)
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection["in"]);
}

File diff suppressed because one or more lines are too long

View File

@ -1403,7 +1403,7 @@ var spine;
var animationLast = current.animationLast, animationTime = current.getAnimationTime();
var timelineCount = current.animation.timelines.length;
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++)
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection["in"]);
}

File diff suppressed because one or more lines are too long

View File

@ -1403,7 +1403,7 @@ var spine;
var animationLast = current.animationLast, animationTime = current.getAnimationTime();
var timelineCount = current.animation.timelines.length;
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++)
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection["in"]);
}

File diff suppressed because one or more lines are too long

View File

@ -1403,7 +1403,7 @@ var spine;
var animationLast = current.animationLast, animationTime = current.getAnimationTime();
var timelineCount = current.animation.timelines.length;
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++)
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection["in"]);
}

File diff suppressed because one or more lines are too long

View File

@ -1403,7 +1403,7 @@ var spine;
var animationLast = current.animationLast, animationTime = current.getAnimationTime();
var timelineCount = current.animation.timelines.length;
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++)
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection["in"]);
}

File diff suppressed because one or more lines are too long

View File

@ -159,7 +159,7 @@ module spine {
let animationLast = current.animationLast, animationTime = current.getAnimationTime();
let timelineCount = current.animation.timelines.length;
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++)
timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, MixDirection.in);
} else {