mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
[libgdx] Use frames local.
This commit is contained in:
parent
09f742d7c6
commit
0e13cdbb76
@ -960,7 +960,7 @@ public class SkeletonJson extends SkeletonLoader {
|
|||||||
int frames = timelineMap.size;
|
int frames = timelineMap.size;
|
||||||
String timelineName = timelineMap.name;
|
String timelineName = timelineMap.name;
|
||||||
if (timelineName.equals("reset")) {
|
if (timelineName.equals("reset")) {
|
||||||
PhysicsConstraintResetTimeline timeline = new PhysicsConstraintResetTimeline(timelineMap.size, index);
|
PhysicsConstraintResetTimeline timeline = new PhysicsConstraintResetTimeline(frames, index);
|
||||||
for (int frame = 0; keyMap != null; keyMap = keyMap.next, frame++)
|
for (int frame = 0; keyMap != null; keyMap = keyMap.next, frame++)
|
||||||
timeline.setFrame(frame, keyMap.getFloat("time", 0));
|
timeline.setFrame(frame, keyMap.getFloat("time", 0));
|
||||||
timelines.add(timeline);
|
timelines.add(timeline);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user