mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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;
|
let frames = timelineMap.length;
|
||||||
if (timelineName == "reset") {
|
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++)
|
for (let frame = 0; keyMap != null; keyMap = timelineMap[frame + 1], frame++)
|
||||||
timeline.setFrame(frame, getValue(keyMap, "time", 0));
|
timeline.setFrame(frame, getValue(keyMap, "time", 0));
|
||||||
timelines.push(timeline);
|
timelines.push(timeline);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user