Update Healer Man server
This commit is contained in:
1 parent
6114a2295f
commit
69809f7228
593 files changed
+903643
-40774
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { NodeIO } from "@gltf-transform/core";
|
||||
import { ALL_EXTENSIONS } from "@gltf-transform/extensions";
|
||||
import { applyRunewakerDerivedSupportStyling } from "./rom-derived-support-styling.mjs";
|
||||
|
||||
export async function applyRunewakerDerivedSupportStylingToFile(file, options) {
|
||||
if (!options.policyId) return { status: "not-requested", geometryChanged: false };
|
||||
const sourceDdsBytes = await readFile(options.sourceDdsFile);
|
||||
const io = new NodeIO().registerExtensions(ALL_EXTENSIONS);
|
||||
const document = await io.read(file);
|
||||
const report = applyRunewakerDerivedSupportStyling(document, { ...options, sourceDdsBytes });
|
||||
if (report.status === "applied") await io.write(file, document);
|
||||
return report;
|
||||
}
|
||||
Reference in new issue
Block a user