Fixed ColorTimeline.setFrame bug

".. x, y)" should be ".. r, g, b, a)"
This commit is contained in:
Vesnica 2013-08-04 16:05:59 +08:00
parent ab8a08c8cb
commit 50a0c3045e

View File

@ -389,7 +389,7 @@ spine.ColorTimeline.prototype = {
getFrameCount: function () {
return this.frames.length / 2;
},
setFrame: function (frameIndex, time, x, y) {
setFrame: function (frameIndex, time, r, g, b, a) {
frameIndex *= 5;
this.frames[frameIndex] = time;
this.frames[frameIndex + 1] = r;