mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
[csharp] Apply left over time additively to track time of delayed TrackEntry. See #1504.
This commit is contained in:
parent
b589284016
commit
b17a20286f
@ -136,7 +136,7 @@ namespace Spine {
|
||||
float nextTime = current.trackLast - next.delay;
|
||||
if (nextTime >= 0) {
|
||||
next.delay = 0;
|
||||
next.trackTime = current.timeScale == 0 ? 0 : (nextTime / current.timeScale + delta) * next.timeScale;
|
||||
next.trackTime += current.timeScale == 0 ? 0 : (nextTime / current.timeScale + delta) * next.timeScale;
|
||||
current.trackTime += currentDelta;
|
||||
SetCurrent(i, next, true);
|
||||
while (next.mixingFrom != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user