model/blend: compressed .blend sniffing (gzip peek, zstd up to 4 MB) so F.model.load finds them

This commit is contained in:
4DBug committed 2026-11-01 19:26:34 -06:00
1 parent 3c8d5e99d7
commit 08f3b1c5bd
3 files changed
+36 -3

No files matched your search

+1 -1
View File
@@ -740,7 +740,7 @@ local list: { Entry } = {
path = "model/blend",
extensions = { "blend" },
mime = { "application/x-blender" },
deps = { "core/Err", "core/Bytes", "Types", "containers/Blend", "codecs/model/Mat4", "codecs/model/Rig", "codecs/model/Polygon" },
deps = { "core/Err", "core/Bytes", "Types", "containers/Blend", "codecs/compress/Deflate", "codecs/compress/Zstd", "codecs/model/Mat4", "codecs/model/Rig", "codecs/model/Polygon" },
caps = { decode = true, encode = false, materials = true, textures = true, animation = true, skins = true, morphTargets = true, cameras = true, lights = true, polygons = true, compressed = true },
load = function()
return require("@rosetta/model/blend")