mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[csharp] Fix for #1064, delay was calculated incorrectly for non-loop previous track entries.
This commit is contained in:
parent
095424ee98
commit
d029d19a3e
@ -513,9 +513,14 @@ namespace Spine {
|
|||||||
last.next = entry;
|
last.next = entry;
|
||||||
if (delay <= 0) {
|
if (delay <= 0) {
|
||||||
float duration = last.animationEnd - last.animationStart;
|
float duration = last.animationEnd - last.animationStart;
|
||||||
if (duration != 0)
|
if (duration != 0) {
|
||||||
delay += duration * (1 + (int)(last.trackTime / duration)) - data.GetMix(last.animation, animation);
|
if (last.loop) {
|
||||||
else
|
delay += duration * (1 + (int)(last.trackTime / duration));
|
||||||
|
} else {
|
||||||
|
delay += duration;
|
||||||
|
}
|
||||||
|
delay -= data.GetMix(last.animation, animation);
|
||||||
|
} else
|
||||||
delay = 0;
|
delay = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user