Browse Source

Fixed getFrameCount for attachment timelines, issue #62

NathanSweet 12 năm trước cách đây
mục cha
commit
661c39cca5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;