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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(editor): retain programmatic projection across state updates
yhh44aebadb49ee
diff --git a/.github/workflows/editor-spatial.yml b/.github/workflows/editor-spatial.ymlindex 02dd25341..5df59ec04 100644--- a/.github/workflows/editor-spatial.yml+++ b/.github/workflows/editor-spatial.yml@@ -4,7 +4,7 @@ on:workflow_dispatch:inputs:artifact-run:- description: Build run with successful Web artifacts from identical runtime sources+ description: Build run with successful Web artifacts from identical engine and SDK sourcestype: stringrequired: true@@ -27,14 +27,14 @@ jobs:with:ssh-key: ${{ secrets.EDITOR_SSH_KEY }}- uses: ./.github/actions/setup- - name: Require identical runtime sources and a successful Web build+ - name: Require identical engine and SDK sources and a successful Web buildenv:GH_TOKEN: ${{ github.token }}ARTIFACT_RUN: ${{ inputs.artifact-run }}run: |[[ "$ARTIFACT_RUN" =~ ^[0-9]+$ ]]source=$(gh api "repos/$GITHUB_REPOSITORY/actions/runs/$ARTIFACT_RUN" --jq .head_sha)- git diff --exit-code "$source" HEAD -- src sdk native desktop include CMakeLists.txt package.json toolchain.manifest.json build-tools pipeline+ git diff --exit-code "$source" HEAD -- src sdk native include CMakeLists.txt package.json toolchain.manifest.json build-tools pipelinepassed=$(gh api "repos/$GITHUB_REPOSITORY/actions/runs/$ARTIFACT_RUN/jobs?per_page=100" --jq '[.jobs[] | select(.name == "Web (Emscripten)" and .conclusion == "success")] | length')test "$passed" -eq 1gh run download "$ARTIFACT_RUN" --repo "$GITHUB_REPOSITORY" --name wasm-web --dir build/wasm/webdiff --git a/CHANGELOG.md b/CHANGELOG.mdindex eb6fbf0d8..62bed2730 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,6 +14,10 @@ published separately; it ships inside the editor.## [Unreleased]+### Fixed++- **Automation projection settings persist across editor state changes.** Programmatic perspective changes update the same state used by the editor toggle, so choosing a tool or changing display preferences no longer restores the previous projection. Repeating an unchanged setting avoids UI notifications while reapplying it to the engine; scene cameras remain unedited.+## [0.86.0] - 2026-10-15### Fixeddiff --git a/desktop b/desktopindex e0283f6e8..98e32f631 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit e0283f6e8301445fc8ef00cac6cb6813b2db3c67+Subproject commit 98e32f631118b8045cd3c957feb6c094e933f745diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 2f8870784..db2c531d8 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -28,6 +28,8 @@ export const NOTES_FLOOR = 'v0.65.0';* the reader recognises anyway.*/export const NOTED = {+ 'fix(editor): retain programmatic projection across state updates':+ { note: 'Automation projection settings persist across editor state changes.' },'test(viewport): preserve spatial view through tool selection':{ internal: 'Spatial acceptance uses the actual editor projection command so selecting a tool retains the store-owned view; a focused CI workflow can reuse a proven identical runtime.' },'test(viewport): retain spatial drag startup diagnostics':diff --git a/tools/verify-gizmo-planes.mjs b/tools/verify-gizmo-planes.mjsindex 85c8e9032..b9c617774 100644--- a/tools/verify-gizmo-planes.mjs+++ b/tools/verify-gizmo-planes.mjs@@ -23,7 +23,7 @@ try{const point=`(()=>{const g=window.__estellaEditor.gizmoLayout();if(!g?.spatial)throw Error('Missing spatial frame');${axis==='view'||axis==='xyz'?'return g.screen;':`const p=g.planes.find(p=>p.axis==='${axis}');if(!p)throw Error('Missing ${axis} plane');return {x:g.screen.x+p.corners.reduce((n,p)=>n+p.x,0)/4,y:g.screen.y+p.corners.reduce((n,p)=>n+p.y,0)/4};`}})()`;const run=runElectron(['.'],{via:'npx',encoding:'utf8',cwd:path.join(root,'desktop'),timeout:180000,env:{ESTELLA_SHOT:path.join(out,axis+'.png'),ESTELLA_SHOT_PROJECT:project,ESTELLA_SHOT_SCENE:'assets/scenes/main.esscene',- ESTELLA_SHOT_EVAL:`(async()=>{const e=window.__estellaEditor;e.runCommand('mode.scene');e.runCommand('view.toggleViewPerspective');e.surface.setViewOrbit(45,30);e.surface.select(1);e.frame([1]);await new Promise(r=>setTimeout(r,750));e.runCommand('tool.${mode}');const layout=e.gizmoLayout();if(!layout?.spatial)throw Error('Spatial view was reset before drag: '+JSON.stringify({view:e.editorView(),orbit:e.surface.viewOrbit(),layout}));return {view:e.editorView(),layout};})()`,+ ESTELLA_SHOT_EVAL:`(async()=>{const e=window.__estellaEditor;e.runCommand('mode.scene');e.surface.setViewPerspective(true);e.surface.setViewOrbit(45,30);e.surface.select(1);e.frame([1]);await new Promise(r=>setTimeout(r,750));e.runCommand('tool.${mode}');const layout=e.gizmoLayout();if(!layout?.spatial)throw Error('Spatial view was reset before drag: '+JSON.stringify({view:e.editorView(),orbit:e.surface.viewOrbit(),layout}));return {view:e.editorView(),layout};})()`,ESTELLA_SHOT_EDITOR_DRAG:JSON.stringify({selector:'.viewport__stage canvas',point,dx:axis==='xyz'?58:11,dy:axis==='xyz'?0:7,read})}});fs.writeFileSync(path.join(out,axis+'.log'),run.stdout+'\n'+run.stderr);assert.equal(run.status,0,run.stderr);const line=run.stdout.split('\n').find(l=>l.startsWith('[editorDrag] '));assert(line,'Missing trusted spatial drag: '+axis+'\n'+run.stdout+'\n'+run.stderr);