Use independent XYZAC and XYZBC boat programs and models
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user