mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[ts] Fix SkeletonJson frame count set for PhysicsConstraintResetTimeline
This commit is contained in:
parent
cb0fc7adaa
commit
09f742d7c6
@ -916,7 +916,7 @@ export class SkeletonJson {
|
||||
|
||||
let frames = timelineMap.length;
|
||||
if (timelineName == "reset") {
|
||||
const timeline = new PhysicsConstraintResetTimeline(timelineMap.size, constraintIndex);
|
||||
const timeline = new PhysicsConstraintResetTimeline(frames, constraintIndex);
|
||||
for (let frame = 0; keyMap != null; keyMap = timelineMap[frame + 1], frame++)
|
||||
timeline.setFrame(frame, getValue(keyMap, "time", 0));
|
||||
timelines.push(timeline);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user