瀏覽代碼

[lua] Skeleton:setColor was wrong

badlogic 8 年之前
父節點
當前提交
343f144c93
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      spine-lua/Skeleton.lua

+ 4 - 4
spine-lua/Skeleton.lua

@@ -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