Fixed vec3 isvector
This commit is contained in:
parent
f264ec92ff
commit
ee4ec8ba2a
@ -51,7 +51,7 @@ local function new(x,y,z)
|
||||
end
|
||||
|
||||
local function isvector(v)
|
||||
return getmetatable(v) == vector or type(v.x and v.y and v.z) == "number"
|
||||
return getmetatable(v) == vector or (type(type(v) == "table" and v.x and v.y and v.z) == "number")
|
||||
end
|
||||
|
||||
local zero = new(0,0,0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user