Преглед на файлове

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;