mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[ts] Fix for #1290, do not carry over time when timeScale of a track entry taht's being replaced by a new one is 0.
This commit is contained in:
parent
d907ad1610
commit
9fb2649dd1
@ -1330,7 +1330,7 @@ var spine;
|
|||||||
var nextTime = current.trackLast - next.delay;
|
var nextTime = current.trackLast - next.delay;
|
||||||
if (nextTime >= 0) {
|
if (nextTime >= 0) {
|
||||||
next.delay = 0;
|
next.delay = 0;
|
||||||
next.trackTime = (nextTime / current.timeScale + delta) * next.timeScale;
|
next.trackTime = current.timeScale == 0 ? 0 : (nextTime / current.timeScale + delta) * next.timeScale;
|
||||||
current.trackTime += currentDelta;
|
current.trackTime += currentDelta;
|
||||||
this.setCurrent(i, next, true);
|
this.setCurrent(i, next, true);
|
||||||
while (next.mixingFrom != null) {
|
while (next.mixingFrom != null) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1330,7 +1330,7 @@ var spine;
|
|||||||
var nextTime = current.trackLast - next.delay;
|
var nextTime = current.trackLast - next.delay;
|
||||||
if (nextTime >= 0) {
|
if (nextTime >= 0) {
|
||||||
next.delay = 0;
|
next.delay = 0;
|
||||||
next.trackTime = (nextTime / current.timeScale + delta) * next.timeScale;
|
next.trackTime = current.timeScale == 0 ? 0 : (nextTime / current.timeScale + delta) * next.timeScale;
|
||||||
current.trackTime += currentDelta;
|
current.trackTime += currentDelta;
|
||||||
this.setCurrent(i, next, true);
|
this.setCurrent(i, next, true);
|
||||||
while (next.mixingFrom != null) {
|
while (next.mixingFrom != null) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1330,7 +1330,7 @@ var spine;
|
|||||||
var nextTime = current.trackLast - next.delay;
|
var nextTime = current.trackLast - next.delay;
|
||||||
if (nextTime >= 0) {
|
if (nextTime >= 0) {
|
||||||
next.delay = 0;
|
next.delay = 0;
|
||||||
next.trackTime = (nextTime / current.timeScale + delta) * next.timeScale;
|
next.trackTime = current.timeScale == 0 ? 0 : (nextTime / current.timeScale + delta) * next.timeScale;
|
||||||
current.trackTime += currentDelta;
|
current.trackTime += currentDelta;
|
||||||
this.setCurrent(i, next, true);
|
this.setCurrent(i, next, true);
|
||||||
while (next.mixingFrom != null) {
|
while (next.mixingFrom != null) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1330,7 +1330,7 @@ var spine;
|
|||||||
var nextTime = current.trackLast - next.delay;
|
var nextTime = current.trackLast - next.delay;
|
||||||
if (nextTime >= 0) {
|
if (nextTime >= 0) {
|
||||||
next.delay = 0;
|
next.delay = 0;
|
||||||
next.trackTime = (nextTime / current.timeScale + delta) * next.timeScale;
|
next.trackTime = current.timeScale == 0 ? 0 : (nextTime / current.timeScale + delta) * next.timeScale;
|
||||||
current.trackTime += currentDelta;
|
current.trackTime += currentDelta;
|
||||||
this.setCurrent(i, next, true);
|
this.setCurrent(i, next, true);
|
||||||
while (next.mixingFrom != null) {
|
while (next.mixingFrom != null) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1330,7 +1330,7 @@ var spine;
|
|||||||
var nextTime = current.trackLast - next.delay;
|
var nextTime = current.trackLast - next.delay;
|
||||||
if (nextTime >= 0) {
|
if (nextTime >= 0) {
|
||||||
next.delay = 0;
|
next.delay = 0;
|
||||||
next.trackTime = (nextTime / current.timeScale + delta) * next.timeScale;
|
next.trackTime = current.timeScale == 0 ? 0 : (nextTime / current.timeScale + delta) * next.timeScale;
|
||||||
current.trackTime += currentDelta;
|
current.trackTime += currentDelta;
|
||||||
this.setCurrent(i, next, true);
|
this.setCurrent(i, next, true);
|
||||||
while (next.mixingFrom != null) {
|
while (next.mixingFrom != null) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1330,7 +1330,7 @@ var spine;
|
|||||||
var nextTime = current.trackLast - next.delay;
|
var nextTime = current.trackLast - next.delay;
|
||||||
if (nextTime >= 0) {
|
if (nextTime >= 0) {
|
||||||
next.delay = 0;
|
next.delay = 0;
|
||||||
next.trackTime = (nextTime / current.timeScale + delta) * next.timeScale;
|
next.trackTime = current.timeScale == 0 ? 0 : (nextTime / current.timeScale + delta) * next.timeScale;
|
||||||
current.trackTime += currentDelta;
|
current.trackTime += currentDelta;
|
||||||
this.setCurrent(i, next, true);
|
this.setCurrent(i, next, true);
|
||||||
while (next.mixingFrom != null) {
|
while (next.mixingFrom != null) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -76,7 +76,7 @@ module spine {
|
|||||||
let nextTime = current.trackLast - next.delay;
|
let nextTime = current.trackLast - next.delay;
|
||||||
if (nextTime >= 0) {
|
if (nextTime >= 0) {
|
||||||
next.delay = 0;
|
next.delay = 0;
|
||||||
next.trackTime = (nextTime / current.timeScale + delta) * next.timeScale;
|
next.trackTime = current.timeScale == 0 ? 0 : (nextTime / current.timeScale + delta) * next.timeScale;
|
||||||
current.trackTime += currentDelta;
|
current.trackTime += currentDelta;
|
||||||
this.setCurrent(i, next, true);
|
this.setCurrent(i, next, true);
|
||||||
while (next.mixingFrom != null) {
|
while (next.mixingFrom != null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user