Skip to content

Commit

Permalink
Closes #1059, AttachmentTimeline handles setup and first blends the s…
Browse files Browse the repository at this point in the history
…ame before the first key frame, setting the attachment to the setup pose attachment.
  • Loading branch information
badlogic committed Jan 10, 2018
1 parent cbc8231 commit 82d3dd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ public void apply (Skeleton skeleton, float lastTime, float time, Array<Event> e

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));
}
Expand Down

0 comments on commit 82d3dd8

Please sign in to comment.