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

This commit is contained in:
4DBug committed 2026-10-31 10:59:11 -05:00
1 parent 7c15b02354
commit 139441a37b
23 files changed
+139 -137

No files matched your search

+1 -1
View File
@@ -337,7 +337,7 @@ function Stl.encode(scene: Types.Scene, opts: EncodeOptions?): (buffer?, Err.Err
return nil, Err.new(Err.ARG, tostring(merr))
end
local P = m.attrs.POSITION.values
local N = if o.normals == "attribute" and m.attrs.NORMAL then m.attrs.NORMAL.values else nil
local N = if o.normals == "attribute" and m.attrs.NORMAL then (m.attrs.NORMAL :: Flatten.Attr).values else nil
local C = m.attrs.COLOR_0
local corners = m.corners
local nf = #corners // 3