3D engine that AI agents drive
Load the sky through the fetch shim when exporting tier scenes (Part of #904)
Nguyen Xuan An7f9a889cd564
diff --git a/bench/tiers/run-all.mjs b/bench/tiers/run-all.mjsindex 256ca1bb..ec8eb2dc 100644--- a/bench/tiers/run-all.mjs+++ b/bench/tiers/run-all.mjs@@ -71,7 +71,7 @@ async function exportSceneIfMissing(scene) {const sceneJson = join(workDirectory, 'scenes', `${scene}.json`);if (!existsSync(sceneJson)) {console.log(`export ${scene}`);- const exitCode = await run('node', ['bench/cycles-parity/export-scene.mjs', workDirectory, '--scene', scene], join(workDirectory, `export-${scene}.log`));+ const exitCode = await run('node', ['--import', './bench/tiers/fetch-shim.mjs', 'bench/cycles-parity/export-scene.mjs', workDirectory, '--scene', scene], join(workDirectory, `export-${scene}.log`));if (exitCode !== 0) throw new Error(`Exporting ${scene} failed, see ${workDirectory}/export-${scene}.log.`);}return sceneJson;