tests/model/bsp: every Quake 1 / Half-Life material links its texture
This commit is contained in:
1 parent
351f6620dd
commit
f9c95a357b
1 file changed
+4
@@ -72,6 +72,10 @@ local function brush(label: string, c: any, opts: any)
|
||||
t:check(windingOk(prim), label .. ": " .. tname .. " counter-clockwise")
|
||||
end
|
||||
end
|
||||
for _, mat in s.materials do
|
||||
local ref = mat.baseColorTexture
|
||||
t:check(ref and s.textures[ref.texture] and s.textures[ref.texture].name == mat.name, label .. ": material " .. mat.name .. " links its texture")
|
||||
end
|
||||
t:eq(#s.meta.entities, 3, label .. ": entities")
|
||||
t:eq(s.meta.entities[2].classname, "info_player_start", label .. ": entity classname")
|
||||
t:eq(s.meta.entities[3].model, "*1", label .. ": brush entity model")
|
||||
|
||||
Reference in new issue
Block a user