Permalink
Browse files

[as3] Fix for #1064, delay was calculated incorrectly for non-loop pr…

…evious track entries.
  • Loading branch information...
badlogic committed Jan 12, 2018
1 parent dd61552 commit f56937c042b5d3d7be768282aebf3c6c2bfd7ab9
View
Binary file not shown.
@@ -468,9 +468,12 @@ package spine.animation {
last.next = entry;
if (delay <= 0) {
var duration : Number = last.animationEnd - last.animationStart;
if (duration != 0)
delay += duration * (1 + (int)(last.trackTime / duration)) - data.getMix(last.animation, animation);
else
if (duration != 0) {
if (last.loop)
delay += duration * (1 + (int)(last.trackTime / duration));
else
delay += duration;
} else
delay = 0;
}
}
Binary file not shown.
View
Binary file not shown.

0 comments on commit f56937c

Please sign in to comment.