mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 14:54:53 +08:00
Allow attachment loader to return null.
This commit is contained in:
parent
bae19bdf32
commit
ae7ca98b8e
@ -318,7 +318,8 @@ public class SkeletonBinary {
|
||||
int slotIndex = input.readInt(true);
|
||||
for (int ii = 0, nn = input.readInt(true); ii < nn; ii++) {
|
||||
String name = input.readString();
|
||||
skin.addAttachment(slotIndex, name, readAttachment(input, skin, slotIndex, name, nonessential));
|
||||
Attachment attachment = readAttachment(input, skin, slotIndex, name, nonessential);
|
||||
if (attachment != null) skin.addAttachment(slotIndex, name, attachment);
|
||||
}
|
||||
}
|
||||
return skin;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user