Explorar o código

Fixed getFrameCount for attachment timelines, issue #62

NathanSweet %!s(int64=12) %!d(string=hai) anos
pai
achega
661c39cca5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      spine-js/spine.js

+ 1 - 1
spine-js/spine.js

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