mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Use slot local variable.
This commit is contained in:
parent
3212e44aa9
commit
75775bbdac
@ -693,8 +693,7 @@ public class Animation {
|
|||||||
frameIndex = binarySearch(frames, time, 1) - 1;
|
frameIndex = binarySearch(frames, time, 1) - 1;
|
||||||
|
|
||||||
String attachmentName = attachmentNames[frameIndex];
|
String attachmentName = attachmentNames[frameIndex];
|
||||||
skeleton.slots.get(slotIndex)
|
slot.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slotIndex, attachmentName));
|
||||||
.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slotIndex, attachmentName));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user