Skip to content

Commit

Permalink
Merge pull request #1202 from zringhost11/LayaAir_3.0.0
Browse files Browse the repository at this point in the history
Laya air 3.0.0(更新spine3.8官方库,修正了切换动画的时候有些骨骼图片会丢失显示的bug)
  • Loading branch information
xiaoguzhu authored Sep 4, 2023
2 parents 6a8f7e0 + 019d87f commit 94fabcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layaAir/jsLibs/spine-core-3.8.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ var spine;
.setAttachment(attachmentName == null ? null : skeleton.getAttachment(this.slotIndex, attachmentName));
}
setAttachment(skeleton, slot, attachmentName) {
slot.attachment = attachmentName == null ? null : skeleton.getAttachment(this.slotIndex, attachmentName);
slot.setAttachment(attachmentName == null ? null : skeleton.getAttachment(this.slotIndex, attachmentName));
}
}
spine.AttachmentTimeline = AttachmentTimeline;
Expand Down Expand Up @@ -1472,7 +1472,7 @@ var spine;
var slot = slots[i];
if (slot.attachmentState == setupState) {
var attachmentName = slot.data.attachmentName;
slot.attachment = (attachmentName == null ? null : skeleton.getAttachment(slot.data.index, attachmentName));
slot.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slot.data.index, attachmentName));
}
}
this.unkeyedState += 2;
Expand Down Expand Up @@ -2203,7 +2203,7 @@ var spine;
success(path, data);
this.toLoad--;
this.loaded++;
}, (status, responseText) => {
}, (state, responseText) => {
this.errors[path] = `Couldn't load binary ${path}: status ${status}, ${responseText}`;
if (error)
error(path, `Couldn't load binary ${path}: status ${status}, ${responseText}`);
Expand Down

0 comments on commit 94fabcf

Please # to comment.