mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge branch '3.7-beta' of https://github.com/esotericsoftware/spine-runtimes into 3.7-beta
This commit is contained in:
commit
90554dff04
@ -528,13 +528,13 @@ namespace Spine {
|
|||||||
float duration = last.animationEnd - last.animationStart;
|
float duration = last.animationEnd - last.animationStart;
|
||||||
if (duration != 0) {
|
if (duration != 0) {
|
||||||
if (last.loop) {
|
if (last.loop) {
|
||||||
delay += duration * (1 + (int)(last.trackTime / duration));
|
delay += duration * (1 + (int)(last.trackTime / duration)); // Completion of next loop.
|
||||||
} else {
|
} else {
|
||||||
delay += duration;
|
delay += Math.Max(duration, last.trackTime); // After duration, else next update.
|
||||||
}
|
}
|
||||||
delay -= data.GetMix(last.animation, animation);
|
delay -= data.GetMix(last.animation, animation);
|
||||||
} else
|
} else
|
||||||
delay = 0;
|
delay = last.trackTime; // Next update.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -544,12 +544,12 @@ public class AnimationState {
|
|||||||
float duration = last.animationEnd - last.animationStart;
|
float duration = last.animationEnd - last.animationStart;
|
||||||
if (duration != 0) {
|
if (duration != 0) {
|
||||||
if (last.loop)
|
if (last.loop)
|
||||||
delay += duration * (1 + (int)(last.trackTime / duration));
|
delay += duration * (1 + (int)(last.trackTime / duration)); // Completion of next loop.
|
||||||
else
|
else
|
||||||
delay += duration;
|
delay += Math.max(duration, last.trackTime); // After duration, else next update.
|
||||||
delay -= data.getMix(last.animation, animation);
|
delay -= data.getMix(last.animation, animation);
|
||||||
} else
|
} else
|
||||||
delay = 0;
|
delay = last.trackTime; // Next update.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user