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,13 +228,15 @@ 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];
|
||||||
for (name in dictionary.keys()) {
|
if (null != dictionary) {
|
||||||
var skinAttachment:Attachment = dictionary.get(name);
|
for (name in dictionary.keys()) {
|
||||||
if (slotAttachment == skinAttachment) {
|
var skinAttachment:Attachment = dictionary.get(name);
|
||||||
var attachment:Attachment = getAttachment(slotIndex, name);
|
if (slotAttachment == skinAttachment) {
|
||||||
if (attachment != null)
|
var attachment:Attachment = getAttachment(slotIndex, name);
|
||||||
slot.attachment = attachment;
|
if (attachment != null)
|
||||||
break;
|
slot.attachment = attachment;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user