mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[csharp] Fix for #1290, do not carry over time when timeScale of a track entry taht's being replaced by a new one is 0.
This commit is contained in:
parent
ed5dee43ef
commit
c66113e19d
@ -98,7 +98,7 @@ namespace Spine {
|
||||
float nextTime = current.trackLast - next.delay;
|
||||
if (nextTime >= 0) {
|
||||
next.delay = 0;
|
||||
next.trackTime = (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