mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 02:58:44 +08:00
[lua] Skeleton:setColor was wrong
This commit is contained in:
parent
fe25ffda1a
commit
343f144c93
@ -512,10 +512,10 @@ function Skeleton:update (delta)
|
||||
end
|
||||
|
||||
function Skeleton:setColor (r, g, b, a)
|
||||
self.r = r
|
||||
self.g = g
|
||||
self.b = b
|
||||
self.a = a
|
||||
self.color.r = r
|
||||
self.color.g = g
|
||||
self.color.b = b
|
||||
self.color.a = a
|
||||
end
|
||||
|
||||
return Skeleton
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user