Fix Set Animation Time with ratio.

This commit is contained in:
Davide Tantillo 2026-02-26 12:16:45 +01:00
parent a94b17292d
commit f825f3755b

View File

@ -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);
}
}