mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[ts][threejs] Skin.attachAll() null check (#2755)
This commit is contained in:
parent
bd1b98fe97
commit
7f2a3fe013
@ -228,6 +228,7 @@ class Skin {
|
|||||||
var slotAttachment:Attachment = slot.attachment;
|
var slotAttachment:Attachment = slot.attachment;
|
||||||
if (slotAttachment != null && slotIndex < oldSkin.attachments.length) {
|
if (slotAttachment != null && slotIndex < oldSkin.attachments.length) {
|
||||||
var dictionary:StringMap<Attachment> = oldSkin.attachments[slotIndex];
|
var dictionary:StringMap<Attachment> = oldSkin.attachments[slotIndex];
|
||||||
|
if (null != dictionary) {
|
||||||
for (name in dictionary.keys()) {
|
for (name in dictionary.keys()) {
|
||||||
var skinAttachment:Attachment = dictionary.get(name);
|
var skinAttachment:Attachment = dictionary.get(name);
|
||||||
if (slotAttachment == skinAttachment) {
|
if (slotAttachment == skinAttachment) {
|
||||||
@ -238,6 +239,7 @@ class Skin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
slotIndex++;
|
slotIndex++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user