Fixed getFrameCount for attachment timelines, issue #62

This commit is contained in:
NathanSweet 2013-06-12 02:31:00 +02:00
parent bb403132c0
commit 661c39cca5

View File

@ -455,7 +455,7 @@ spine.AttachmentTimeline = function (frameCount) {
spine.AttachmentTimeline.prototype = {
slotIndex: 0,
getFrameCount: function () {
return this.frames.length / 2;
return this.frames.length;
},
setFrame: function (frameIndex, time, attachmentName) {
this.frames[frameIndex] = time;