mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[libgdx] Need to check for null attachment in internal entries.
This commit is contained in:
parent
f8ea06048c
commit
829fcc4168
@ -80,9 +80,10 @@ public class Skin {
|
||||
|
||||
for (SkinEntry entry : skin.attachments.keys()) {
|
||||
if (entry.attachment instanceof MeshAttachment)
|
||||
setAttachment(entry.slotIndex, entry.name, ((MeshAttachment)entry.attachment).newLinkedMesh());
|
||||
setAttachment(entry.slotIndex, entry.name,
|
||||
entry.attachment != null ? ((MeshAttachment)entry.attachment).newLinkedMesh() : null);
|
||||
else
|
||||
setAttachment(entry.slotIndex, entry.name, entry.attachment.copy());
|
||||
setAttachment(entry.slotIndex, entry.name, entry.attachment != null ? entry.attachment.copy() : null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user