From 661c39cca5e3d3a7a09c8a2d64e41bbd4aa75498 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Wed, 12 Jun 2013 02:31:00 +0200 Subject: [PATCH] Fixed getFrameCount for attachment timelines, issue #62 --- spine-js/spine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-js/spine.js b/spine-js/spine.js index 3e9788923..956bd5282 100644 --- a/spine-js/spine.js +++ b/spine-js/spine.js @@ -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;