Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(gates): two editor checks judge what they meant to

esengine32459ef93285
diff --git a/desktop/scripts/editor-checks/camera-frustum.mjs b/desktop/scripts/editor-checks/camera-frustum.mjs
index 09dd0510a..7da8d3dd4 100644
--- a/desktop/scripts/editor-checks/camera-frustum.mjs
+++ b/desktop/scripts/editor-checks/camera-frustum.mjs
@@ -78,6 +78,11 @@ export async function run(ed) {
const showFrustum = (on) =>
ed.call('set_field', { entity: 0, component: 'Camera', key: 'showFrustum', type: 'bool', value: on }, 30000);
+ // Written once before the baseline: a field write selects what it wrote to,
+ // and the selection draws its own gizmo — which would otherwise be the
+ // difference between the first capture and every later one.
+ await showFrustum(false);
+ await ed.sleep(800);
const off = await ed.screenshot('frustum-off');
await showFrustum(true);
await ed.sleep(800);
diff --git a/desktop/scripts/editor-checks/compressed-import.mjs b/desktop/scripts/editor-checks/compressed-import.mjs
index ef9c4ed2c..23bc33726 100644
--- a/desktop/scripts/editor-checks/compressed-import.mjs
+++ b/desktop/scripts/editor-checks/compressed-import.mjs
@@ -48,7 +48,10 @@ export async function run(ed) {
`import reported ${JSON.stringify(result)}`)) {
return check.failures;
}
- check(!result.warnings?.length, `import warned: ${JSON.stringify(result.warnings)}`);
+ // The fixtures are a unit across, so every import notes their size; anything
+ // else is the compressed path saying it could not read something.
+ const notes = (result.warnings ?? []).filter((w) => !w.includes('units across'));
+ check(notes.length === 0, `import warned: ${JSON.stringify(notes)}`);
const mesh = async (stem) => {
try {