mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Removed deferred attachment lookup.
3rd try is a charm. Don't code tired!
This commit is contained in:
parent
5c363f0cc1
commit
4c82899115
@ -540,8 +540,8 @@ public class Animation {
|
|||||||
frameIndex = binarySearch(frames, time, 1) - 1;
|
frameIndex = binarySearch(frames, time, 1) - 1;
|
||||||
|
|
||||||
String attachmentName = attachmentNames[frameIndex];
|
String attachmentName = attachmentNames[frameIndex];
|
||||||
Slot slot = skeleton.slots.get(slotIndex);
|
skeleton.slots.get(slotIndex)
|
||||||
slot.setAttachment(skeleton.getAttachment(slot.data.index, attachmentName));
|
.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slotIndex, attachmentName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user