[libgdx] Removed deferred attachment lookup.

3rd try is a charm. Don't code tired!
This commit is contained in:
NathanSweet 2016-06-28 17:37:43 +02:00
parent 5c363f0cc1
commit 4c82899115

View File

@ -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));
}
}