Fixed vec3 isvector

This commit is contained in:
Davis Claiborne 2016-07-10 08:34:48 -04:00
parent f264ec92ff
commit ee4ec8ba2a

View File

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