model/blend: Blender 1.6x-2.0x files (big-endian, 32-bit, TFace / MCol, IPO curves, additive dsize), easing curves, owner-scoped address lookup; containers/Blend tests; docs section; bench line

This commit is contained in:
4DBug committed 2026-11-01 19:23:28 -06:00
1 parent 2e82b7d0af
commit 3c8d5e99d7
14 files changed
+766 -110

No files matched your search

+3 -1
View File
@@ -190,9 +190,11 @@ local function imageRef(ctx: Ctx, g: Graph, uvNames: any, s: Blend.View?, throug
return nil, n
end
local sampler: Types.Sampler = {}
local custom = false
local st = n.view:deref("storage", 0, "NodeTexImage")
if st then
local interp, ext = st:num("interpolation") or 0, st:num("extension") or 0
custom = interp == 1 or (ext >= 1 and ext <= 3)
if interp == 1 then
sampler.filter = "nearest"
sampler.minFilter = "nearest"
@@ -203,7 +205,7 @@ local function imageRef(ctx: Ctx, g: Graph, uvNames: any, s: Blend.View?, throug
sampler.wrapS, sampler.wrapT = "mirror", "mirror"
end
end
local t = texture(ctx, img, if next(sampler) then sampler else nil)
local t = texture(ctx, img, if custom then sampler else nil)
if not t then
return nil, n
end