瀏覽代碼

Fixed getFrameCount for attachment timelines, issue #62

NathanSweet 12 年之前
父節點
當前提交
661c39cca5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-js/spine.js

+ 1 - 1
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;