polyfill both tank model and armor

This commit is contained in:
tresabhi committed 2026-12-03 21:23:34 -06:00
1 parent eda6eb280f
commit 2e2585e605
5 files changed
+61 -62

No files matched your search

@@ -10,6 +10,7 @@ import {
import type { AbstractVFS } from "@blitzkit/core/src/blitzkit/vfs/abstract";
import { Accessor, Document, Node, NodeIO, Scene } from "@gltf-transform/core";
import type { APIContext } from "astro";
import { polyfillAttributes } from "../../../core/blitzkit/polyfillAttributes";
import { vfs } from "../../../core/blitzkit/vfs";
export { getStaticPaths } from "./_index";
@@ -163,6 +164,8 @@ async function extractArmor(vfs: AbstractVFS, fileName: string) {
},
);
polyfillAttributes(document, buffer);
return document;
}