mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-05 18:26:52 +08:00
[ts] Ported fix for #1119
This commit is contained in:
parent
cd198815e5
commit
73fca0ba63
@ -1331,6 +1331,8 @@ var spine;
|
|||||||
if (from == null)
|
if (from == null)
|
||||||
return true;
|
return true;
|
||||||
var finished = this.updateMixingFrom(from, delta);
|
var finished = this.updateMixingFrom(from, delta);
|
||||||
|
from.animationLast = from.nextAnimationLast;
|
||||||
|
from.trackLast = from.nextTrackLast;
|
||||||
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
||||||
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
||||||
to.mixingFrom = from.mixingFrom;
|
to.mixingFrom = from.mixingFrom;
|
||||||
@ -1339,8 +1341,6 @@ var spine;
|
|||||||
}
|
}
|
||||||
return finished;
|
return finished;
|
||||||
}
|
}
|
||||||
from.animationLast = from.nextAnimationLast;
|
|
||||||
from.trackLast = from.nextTrackLast;
|
|
||||||
from.trackTime += delta * from.timeScale;
|
from.trackTime += delta * from.timeScale;
|
||||||
to.mixTime += delta * to.timeScale;
|
to.mixTime += delta * to.timeScale;
|
||||||
return false;
|
return false;
|
||||||
@ -10047,7 +10047,7 @@ var spine;
|
|||||||
else {
|
else {
|
||||||
for (var i = 0; i < config.atlasPages.length; i++) {
|
for (var i = 0; i < config.atlasPages.length; i++) {
|
||||||
if (config.atlasPagesContent && config.atlasPagesContent[i]) {
|
if (config.atlasPagesContent && config.atlasPagesContent[i]) {
|
||||||
assets.loadTextureData(config.atlasPages[i], config.atlasPagesContent[0]);
|
assets.loadTextureData(config.atlasPages[i], config.atlasPagesContent[i]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assets.loadTexture(config.atlasPages[i]);
|
assets.loadTexture(config.atlasPages[i]);
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1331,6 +1331,8 @@ var spine;
|
|||||||
if (from == null)
|
if (from == null)
|
||||||
return true;
|
return true;
|
||||||
var finished = this.updateMixingFrom(from, delta);
|
var finished = this.updateMixingFrom(from, delta);
|
||||||
|
from.animationLast = from.nextAnimationLast;
|
||||||
|
from.trackLast = from.nextTrackLast;
|
||||||
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
||||||
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
||||||
to.mixingFrom = from.mixingFrom;
|
to.mixingFrom = from.mixingFrom;
|
||||||
@ -1339,8 +1341,6 @@ var spine;
|
|||||||
}
|
}
|
||||||
return finished;
|
return finished;
|
||||||
}
|
}
|
||||||
from.animationLast = from.nextAnimationLast;
|
|
||||||
from.trackLast = from.nextTrackLast;
|
|
||||||
from.trackTime += delta * from.timeScale;
|
from.trackTime += delta * from.timeScale;
|
||||||
to.mixTime += delta * to.timeScale;
|
to.mixTime += delta * to.timeScale;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1331,6 +1331,8 @@ var spine;
|
|||||||
if (from == null)
|
if (from == null)
|
||||||
return true;
|
return true;
|
||||||
var finished = this.updateMixingFrom(from, delta);
|
var finished = this.updateMixingFrom(from, delta);
|
||||||
|
from.animationLast = from.nextAnimationLast;
|
||||||
|
from.trackLast = from.nextTrackLast;
|
||||||
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
||||||
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
||||||
to.mixingFrom = from.mixingFrom;
|
to.mixingFrom = from.mixingFrom;
|
||||||
@ -1339,8 +1341,6 @@ var spine;
|
|||||||
}
|
}
|
||||||
return finished;
|
return finished;
|
||||||
}
|
}
|
||||||
from.animationLast = from.nextAnimationLast;
|
|
||||||
from.trackLast = from.nextTrackLast;
|
|
||||||
from.trackTime += delta * from.timeScale;
|
from.trackTime += delta * from.timeScale;
|
||||||
to.mixTime += delta * to.timeScale;
|
to.mixTime += delta * to.timeScale;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1331,6 +1331,8 @@ var spine;
|
|||||||
if (from == null)
|
if (from == null)
|
||||||
return true;
|
return true;
|
||||||
var finished = this.updateMixingFrom(from, delta);
|
var finished = this.updateMixingFrom(from, delta);
|
||||||
|
from.animationLast = from.nextAnimationLast;
|
||||||
|
from.trackLast = from.nextTrackLast;
|
||||||
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
||||||
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
||||||
to.mixingFrom = from.mixingFrom;
|
to.mixingFrom = from.mixingFrom;
|
||||||
@ -1339,8 +1341,6 @@ var spine;
|
|||||||
}
|
}
|
||||||
return finished;
|
return finished;
|
||||||
}
|
}
|
||||||
from.animationLast = from.nextAnimationLast;
|
|
||||||
from.trackLast = from.nextTrackLast;
|
|
||||||
from.trackTime += delta * from.timeScale;
|
from.trackTime += delta * from.timeScale;
|
||||||
to.mixTime += delta * to.timeScale;
|
to.mixTime += delta * to.timeScale;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1331,6 +1331,8 @@ var spine;
|
|||||||
if (from == null)
|
if (from == null)
|
||||||
return true;
|
return true;
|
||||||
var finished = this.updateMixingFrom(from, delta);
|
var finished = this.updateMixingFrom(from, delta);
|
||||||
|
from.animationLast = from.nextAnimationLast;
|
||||||
|
from.trackLast = from.nextTrackLast;
|
||||||
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
||||||
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
||||||
to.mixingFrom = from.mixingFrom;
|
to.mixingFrom = from.mixingFrom;
|
||||||
@ -1339,8 +1341,6 @@ var spine;
|
|||||||
}
|
}
|
||||||
return finished;
|
return finished;
|
||||||
}
|
}
|
||||||
from.animationLast = from.nextAnimationLast;
|
|
||||||
from.trackLast = from.nextTrackLast;
|
|
||||||
from.trackTime += delta * from.timeScale;
|
from.trackTime += delta * from.timeScale;
|
||||||
to.mixTime += delta * to.timeScale;
|
to.mixTime += delta * to.timeScale;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1331,6 +1331,8 @@ var spine;
|
|||||||
if (from == null)
|
if (from == null)
|
||||||
return true;
|
return true;
|
||||||
var finished = this.updateMixingFrom(from, delta);
|
var finished = this.updateMixingFrom(from, delta);
|
||||||
|
from.animationLast = from.nextAnimationLast;
|
||||||
|
from.trackLast = from.nextTrackLast;
|
||||||
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
||||||
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
if (from.totalAlpha == 0 || to.mixDuration == 0) {
|
||||||
to.mixingFrom = from.mixingFrom;
|
to.mixingFrom = from.mixingFrom;
|
||||||
@ -1339,8 +1341,6 @@ var spine;
|
|||||||
}
|
}
|
||||||
return finished;
|
return finished;
|
||||||
}
|
}
|
||||||
from.animationLast = from.nextAnimationLast;
|
|
||||||
from.trackLast = from.nextTrackLast;
|
|
||||||
from.trackTime += delta * from.timeScale;
|
from.trackTime += delta * from.timeScale;
|
||||||
to.mixTime += delta * to.timeScale;
|
to.mixTime += delta * to.timeScale;
|
||||||
return false;
|
return false;
|
||||||
@ -9384,7 +9384,7 @@ var spine;
|
|||||||
else {
|
else {
|
||||||
for (var i = 0; i < config.atlasPages.length; i++) {
|
for (var i = 0; i < config.atlasPages.length; i++) {
|
||||||
if (config.atlasPagesContent && config.atlasPagesContent[i]) {
|
if (config.atlasPagesContent && config.atlasPagesContent[i]) {
|
||||||
assets.loadTextureData(config.atlasPages[i], config.atlasPagesContent[0]);
|
assets.loadTextureData(config.atlasPages[i], config.atlasPagesContent[i]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assets.loadTexture(config.atlasPages[i]);
|
assets.loadTexture(config.atlasPages[i]);
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -114,6 +114,9 @@ module spine {
|
|||||||
|
|
||||||
let finished = this.updateMixingFrom(from, delta);
|
let finished = this.updateMixingFrom(from, delta);
|
||||||
|
|
||||||
|
from.animationLast = from.nextAnimationLast;
|
||||||
|
from.trackLast = from.nextTrackLast;
|
||||||
|
|
||||||
// Require mixTime > 0 to ensure the mixing from entry was applied at least once.
|
// Require mixTime > 0 to ensure the mixing from entry was applied at least once.
|
||||||
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
|
||||||
// Require totalAlpha == 0 to ensure mixing is complete, unless mixDuration == 0 (the transition is a single frame).
|
// Require totalAlpha == 0 to ensure mixing is complete, unless mixDuration == 0 (the transition is a single frame).
|
||||||
@ -125,8 +128,6 @@ module spine {
|
|||||||
return finished;
|
return finished;
|
||||||
}
|
}
|
||||||
|
|
||||||
from.animationLast = from.nextAnimationLast;
|
|
||||||
from.trackLast = from.nextTrackLast;
|
|
||||||
from.trackTime += delta * from.timeScale;
|
from.trackTime += delta * from.timeScale;
|
||||||
to.mixTime += delta * to.timeScale;
|
to.mixTime += delta * to.timeScale;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user