mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Updated line ending so Unity stops complaining.
This commit is contained in:
parent
11055a22e4
commit
07d92bfde4
@ -82,7 +82,8 @@ namespace Spine {
|
|||||||
|
|
||||||
TrackEntry next = current.next;
|
TrackEntry next = current.next;
|
||||||
if (next != null) {
|
if (next != null) {
|
||||||
if (time - trackDelta >= next.delay) SetCurrent(i, next);
|
next.time = current.lastTime - next.delay;
|
||||||
|
if (next.time >= 0) SetCurrent(i, next);
|
||||||
} else {
|
} else {
|
||||||
// End non-looping animation when it reaches its end time and there is no next entry.
|
// End non-looping animation when it reaches its end time and there is no next entry.
|
||||||
if (!current.loop && current.lastTime >= current.endTime) ClearTrack(i);
|
if (!current.loop && current.lastTime >= current.endTime) ClearTrack(i);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user