fixed skeletons setAttachment using getAttachment

getAttachment does not exist, now uses getAttachmentBySlotIndex
This commit is contained in:
smaren 2014-05-08 11:19:05 +02:00
parent 0a275f0ac7
commit 9e2c588734

View File

@ -776,7 +776,7 @@ spine.Skeleton.prototype = {
if (slot.data.name == slotName) {
var attachment = null;
if (attachmentName) {
attachment = this.getAttachment(i, attachmentName);
attachment = this.getAttachmentBySlotIndex(i, attachmentName);
if (!attachment) throw "Attachment not found: " + attachmentName + ", for slot: " + slotName;
}
slot.setAttachment(attachment);