mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-02 05:39:07 +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)
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@ -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;
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user