Attachment name in slot attachment timelines is now optional.

This commit is contained in:
Nathan Sweet 2021-10-04 00:21:02 -10:00
parent 3cb04204f4
commit eb5e19036d

View File

@ -518,7 +518,7 @@ public class SkeletonJson extends SkeletonLoader {
if (timelineName.equals("attachment")) {
AttachmentTimeline timeline = new AttachmentTimeline(frames, slot.index);
for (int frame = 0; keyMap != null; keyMap = keyMap.next, frame++)
timeline.setFrame(frame, keyMap.getFloat("time", 0), keyMap.getString("name"));
timeline.setFrame(frame, keyMap.getFloat("time", 0), keyMap.getString("name", null));
timelines.add(timeline);
} else if (timelineName.equals("rgba")) {