ws-cleanup-types: image/pnm, model/*: type lookup tables, table.create results and literals; casts for known values

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
4DBugandClaude Opus 5.5 committed 2026-10-31 10:59:11 -05:00
1 parent 98b3957d51
commit 5ee6736c6e
23 files changed
+139 -137

No files matched your search

+2 -2
View File
@@ -385,7 +385,7 @@ function Write.build(scene: Types.Scene, opts: Options?): (Out?, Err.Err?)
end
local gp = object()
gp.attributes = object()
local names = {}
local names: { string } = {}
for name in p.attributes do
table.insert(names, name)
end
@@ -603,7 +603,7 @@ function Write.build(scene: Types.Scene, opts: Options?): (Out?, Err.Err?)
return nil, failure
end
-- scenes: the original list (meta.gltf.scenes) when it is there, else the roots
local meta = if type(scene.meta) == "table" then scene.meta else {}
local meta: { [string]: any } = if type(scene.meta) == "table" then scene.meta else {}
local mg = type(meta.gltf) == "table" and meta.gltf or {}
local scenes = {}
if type(mg.scenes) == "table" and #mg.scenes > 0 then