mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-03 06:09:09 +08:00
Fixed ColorTimeline.setFrame bug
".. x, y)" should be ".. r, g, b, a)"
This commit is contained in:
parent
ab8a08c8cb
commit
50a0c3045e
@ -389,7 +389,7 @@ spine.ColorTimeline.prototype = {
|
|||||||
getFrameCount: function () {
|
getFrameCount: function () {
|
||||||
return this.frames.length / 2;
|
return this.frames.length / 2;
|
||||||
},
|
},
|
||||||
setFrame: function (frameIndex, time, x, y) {
|
setFrame: function (frameIndex, time, r, g, b, a) {
|
||||||
frameIndex *= 5;
|
frameIndex *= 5;
|
||||||
this.frames[frameIndex] = time;
|
this.frames[frameIndex] = time;
|
||||||
this.frames[frameIndex + 1] = r;
|
this.frames[frameIndex + 1] = r;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user