mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Attachment name in slot attachment timelines is now optional.
This commit is contained in:
parent
3cb04204f4
commit
eb5e19036d
@ -518,7 +518,7 @@ public class SkeletonJson extends SkeletonLoader {
|
|||||||
if (timelineName.equals("attachment")) {
|
if (timelineName.equals("attachment")) {
|
||||||
AttachmentTimeline timeline = new AttachmentTimeline(frames, slot.index);
|
AttachmentTimeline timeline = new AttachmentTimeline(frames, slot.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), keyMap.getString("name"));
|
timeline.setFrame(frame, keyMap.getFloat("time", 0), keyMap.getString("name", null));
|
||||||
timelines.add(timeline);
|
timelines.add(timeline);
|
||||||
|
|
||||||
} else if (timelineName.equals("rgba")) {
|
} else if (timelineName.equals("rgba")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user