mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-05 18:26:52 +08:00
Fix Set Animation Time with ratio.
This commit is contained in:
parent
a94b17292d
commit
f825f3755b
@ -599,7 +599,7 @@ class SpineC3Instance extends globalThis.ISDKWorldInstanceBase {
|
||||
console.warn(`[Spine] Animation time ratio ${time} is out of bounds [0, 1]`);
|
||||
return;
|
||||
}
|
||||
trackEntry.trackTime = time * (trackEntry.animationEnd - trackEntry.animationStart);
|
||||
trackEntry.trackTime = trackEntry.animationStart + time * (trackEntry.animationEnd - trackEntry.animationStart);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user