[as3] 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:
badlogic 2019-03-04 17:01:45 +01:00
parent 95df49f88d
commit 57e38a0cb3
4 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ package spine.animation {
var nextTime : Number = current.trackLast - next.delay;
if (nextTime >= 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;
setCurrent(i, next, true);
while (next.mixingFrom != null) {