mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 06:44:56 +08:00
Merge pull request #97 from Vesnica/patch-1
Fixed ColorTimeline.setFrame bug
This commit is contained in:
commit
42712a6587
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user