Closes #1059, AttachmentTimeline handles setup and first blends the same before the first key frame, setting the attachment to the setup pose attachment.

This commit is contained in:
badlogic 2018-01-10 16:32:25 +01:00
parent cbc8231b18
commit 82d3dd80e1

View File

@ -905,7 +905,7 @@ public class Animation {
float[] frames = this.frames;
if (time < frames[0]) { // Time is before first frame.
if (blend == setup) {
if (blend == setup || blend == first) {
String attachmentName = slot.data.attachmentName;
slot.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slotIndex, attachmentName));
}