mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 23:05: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;
|
||||
|
||||
String attachmentName = attachmentNames[frameIndex];
|
||||
Slot slot = skeleton.slots.get(slotIndex);
|
||||
slot.setAttachment(skeleton.getAttachment(slot.data.index, attachmentName));
|
||||
skeleton.slots.get(slotIndex)
|
||||
.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slotIndex, attachmentName));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user