Minor tweak
This commit is contained in:
parent
96a63ce581
commit
3c3eebd66f
@ -293,8 +293,6 @@ function color_mt.__index(t, k)
|
||||
if type(k) == "number" then
|
||||
return t._c[k-1]
|
||||
end
|
||||
elseif type(k) == "number" then
|
||||
return t._c[k]
|
||||
end
|
||||
|
||||
return rawget(color, k)
|
||||
@ -304,9 +302,8 @@ function color_mt.__newindex(t, k, v)
|
||||
if type(t) == "cdata" then
|
||||
if type(k) == "number" then
|
||||
t._c[k-1] = v
|
||||
return
|
||||
end
|
||||
elseif type(k) == "number" then
|
||||
t._c[k] = v
|
||||
end
|
||||
|
||||
rawset(color, k, v)
|
||||
|
@ -651,6 +651,7 @@ function mat4_mt.__newindex(t, k, v)
|
||||
if type(t) == "cdata" then
|
||||
if type(k) == "number" then
|
||||
t._m[k-1] = v
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user