mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 06:44:56 +08:00
Fixed lastTime being > time for non-looping animations.
This commit is contained in:
parent
5191cf4f5f
commit
b454d69b45
@ -108,7 +108,10 @@ public class AnimationState {
|
||||
|
||||
float time = current.time, lastTime = current.lastTime, endTime = current.endTime, mix = current.alpha;
|
||||
boolean loop = current.loop;
|
||||
if (!loop && time > endTime) time = endTime;
|
||||
if (!loop) {
|
||||
if (time > endTime) time = endTime;
|
||||
if (lastTime > endTime) lastTime = endTime;
|
||||
}
|
||||
|
||||
if (current.previous != null) {
|
||||
mix *= current.mixTime / current.mixDuration;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user