Fix editor regressions and add Blender scene and animated material import

This commit is contained in:
emil28092005
2026-09-12 00:53:20 +03:00
parent 1a0bf725fa
commit 6f497d1977
34 changed files with 1241 additions and 213 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import { zipSync, unzipSync, strToU8 } from "fflate";
import { gameArchive, readBytes } from "./archive.ts";
import { gameArchive, readBytes, engineResource } from "./archive.ts";
import type { Project } from "./schema.ts";
import { normalizeOptions } from "../native/options.mjs";
export async function buildKit(
@@ -13,7 +13,7 @@ export async function buildKit(
for (const [name, data] of Object.entries(game))
files["native/game/" + name] = data;
const manifest = JSON.parse(
new TextDecoder().decode(await read("/build-targets/manifest.json")),
new TextDecoder().decode(await read(engineResource("/build-targets/manifest.json"))),
) as string[];
for (const name of manifest) {
if (
@@ -22,7 +22,7 @@ export async function buildKit(
name.startsWith("/")
)
throw Error("Invalid build template path");
files["native/" + name] = await read("/build-targets/" + name);
files["native/" + name] = await read(engineResource("/build-targets/" + name));
}
files["native/build-config.json"] = strToU8(JSON.stringify(options, null, 2));
files["README.txt"] = strToU8(