mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 02:36:56 +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);
|
int slotIndex = input.readInt(true);
|
||||||
for (int ii = 0, nn = input.readInt(true); ii < nn; ii++) {
|
for (int ii = 0, nn = input.readInt(true); ii < nn; ii++) {
|
||||||
String name = input.readString();
|
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;
|
return skin;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user