Skip to content

Commit

Permalink
fix 1119 from spine-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpopelyshev committed Sep 20, 2018
1 parent eb5b8fd commit 5c05de2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/AnimationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ namespace pixi_spine.core {

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.
if (to.mixTime > 0 && (to.mixTime >= to.mixDuration || to.timeScale == 0)) {
if (from.totalAlpha == 0) {
Expand All @@ -124,8 +126,6 @@ namespace pixi_spine.core {
return finished;
}

from.animationLast = from.nextAnimationLast;
from.trackLast = from.nextTrackLast;
from.trackTime += delta * from.timeScale;
to.mixTime += delta * to.timeScale;
return false;
Expand Down

0 comments on commit 5c05de2

Please sign in to comment.