mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
parent
0a275f0ac7
commit
cc89e1a3a6
@ -776,7 +776,7 @@ spine.Skeleton.prototype = {
|
|||||||
if (slot.data.name == slotName) {
|
if (slot.data.name == slotName) {
|
||||||
var attachment = null;
|
var attachment = null;
|
||||||
if (attachmentName) {
|
if (attachmentName) {
|
||||||
attachment = this.getAttachment(i, attachmentName);
|
attachment = this.getAttachmentBySlotIndex(i, attachmentName);
|
||||||
if (!attachment) throw "Attachment not found: " + attachmentName + ", for slot: " + slotName;
|
if (!attachment) throw "Attachment not found: " + attachmentName + ", for slot: " + slotName;
|
||||||
}
|
}
|
||||||
slot.setAttachment(attachment);
|
slot.setAttachment(attachment);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user