mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[as3] Port fix to AnimationState, see #1092
This commit is contained in:
parent
90554dff04
commit
4981aa69b9
Binary file not shown.
@ -478,9 +478,9 @@ package spine.animation {
|
||||
if (last.loop)
|
||||
delay += duration * (1 + (int)(last.trackTime / duration));
|
||||
else
|
||||
delay += duration;
|
||||
delay += Math.max(duration, last.trackTime);
|
||||
} else
|
||||
delay = 0;
|
||||
delay = last.trackTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
@ -52,7 +52,7 @@ package spine.examples {
|
||||
up = skeleton.state.setAnimationByName(4, "up", 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;
|
||||
|
||||
skeleton.state.timeScale = 0.5;
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user