Use independent XYZAC and XYZBC boat programs and models

This commit is contained in:
2026-09-11 07:54:55 +08:00
parent 02dcc573b0
commit 07d53a705c
11 changed files with 111 additions and 34 deletions

View File

@@ -228,6 +228,12 @@ export async function loadSimulationCase({ path, fetchImpl = globalThis.fetch, b
// source hashing and model provenance.
const machine = machineDefinition(catalog.path);
if (machine) {
const programPath = machine.program;
if (!(programPath in files)) {
const content = await fetchText(fetchImpl, baseUrl, programPath);
if (content === null) missing.push(programPath);
else { files[programPath] = content; fetched.push(programPath); }
}
const visualSource = machine.source_path;
if (!(visualSource in files)) {
const content = await fetchText(fetchImpl, baseUrl, visualSource);