mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
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:
parent
cbc8231b18
commit
82d3dd80e1
@ -905,7 +905,7 @@ public class Animation {
|
|||||||
|
|
||||||
float[] frames = this.frames;
|
float[] frames = this.frames;
|
||||||
if (time < frames[0]) { // Time is before first frame.
|
if (time < frames[0]) { // Time is before first frame.
|
||||||
if (blend == setup) {
|
if (blend == setup || blend == first) {
|
||||||
String attachmentName = slot.data.attachmentName;
|
String attachmentName = slot.data.attachmentName;
|
||||||
slot.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slotIndex, attachmentName));
|
slot.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slotIndex, attachmentName));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user