mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-20 08:46:43 +08:00
Fixed getFrameCount for attachment timelines, issue #62
This commit is contained in:
parent
bb403132c0
commit
661c39cca5
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user