From 82d3dd80e174f4c70c9ab81766043c3d76abd560 Mon Sep 17 00:00:00 2001 From: badlogic Date: Wed, 10 Jan 2018 16:32:25 +0100 Subject: [PATCH] Closes #1059, AttachmentTimeline handles setup and first blends the same before the first key frame, setting the attachment to the setup pose attachment. --- .../spine-libgdx/src/com/esotericsoftware/spine/Animation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Animation.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Animation.java index 18036a2fc..3fdf55b9e 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Animation.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Animation.java @@ -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)); }