[as3] Port fix to AnimationState, see #1092

This commit is contained in:
badlogic 2018-03-28 14:05:06 +02:00
parent 90554dff04
commit 4981aa69b9
5 changed files with 3 additions and 3 deletions

View File

@ -478,9 +478,9 @@ package spine.animation {
if (last.loop) if (last.loop)
delay += duration * (1 + (int)(last.trackTime / duration)); delay += duration * (1 + (int)(last.trackTime / duration));
else else
delay += duration; delay += Math.max(duration, last.trackTime);
} else } else
delay = 0; delay = last.trackTime;
} }
} }

View File

@ -52,7 +52,7 @@ package spine.examples {
up = skeleton.state.setAnimationByName(4, "up", true); up = skeleton.state.setAnimationByName(4, "up", true);
down = skeleton.state.setAnimationByName(5, "down", true); down = skeleton.state.setAnimationByName(5, "down", true);
left.alpha = right.alpha = up.alpha = down.alpha = 0; left.alpha = right.alpha = up.alpha = down.alpha = 0;
left.mixBlend = right.mixBlend = up.mixBlend = down.mixBlend = MixBlend.add; left.mixBlend = right.mixBlend = up.mixBlend = down.mixBlend = MixBlend.add;
skeleton.state.timeScale = 0.5; skeleton.state.timeScale = 0.5;