mes123456 77c040f484 feat(web): Outliner display modes switch through the native tree
SpaceOutliner.outlinevis is now driven by OUTLINER_SET_DISPLAY_MODE on the
editor-context channel: the action sets the mode, rebuilds the tree with
SO_TREESTORE_REBUILD, and reports changed=false so the switch stays out of
history and does not bump the revision. Snapshots carry displayMode plus
the desktop displayModes menu (Scenes, View Layer, Video Sequencer,
Blender File, Data API, Library Overrides, Unused Data).

The first UI-only command exposed a stale-metadata bug: rebuild_binary_scene
caches by revision, so a changed=false command that altered the snapshot
left the worker reading the previous metadata. Invalidate the binary cache
when the stored snapshot differs. The Outliner toolbar gains the mode
selector, rebased like the other Outliner intents so a concurrent refresh
cannot reject a rapid second switch.

Headed case outliner-display-mode-web switches to Data API and back; the
display-mode engine probe becomes a hard preflight gate.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 05:50:36 +08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…

Blender Web WASM

Blender 5.2-based Web editor runtime with a React/Three.js frontend, a native Blender Main compiled to WebAssembly, versioned browser protocols, OPFS/IndexedDB storage, and desktop/WASM round-trip tests.

The current browser baseline is Chromium only. The release browser suite covers both the main-thread WebGL renderer and the OffscreenCanvas Worker renderer. Firefox and WebKit are permanently outside this project's test, CI, evidence, and release scope. The iron rule is Chromium-only browser execution: never launch, probe, or claim support from Firefox or WebKit. Historical Firefox/WebKit reports are archival context only and are not normative support evidence.

Layout

  • blender-5.2.0/: corresponding Blender source with the WebEngine integration.
  • web/: frontend, Worker clients, protocols, Playwright tests, and local runtime assets.
  • tools/web/: fixture, golden, build, and offline-release tooling.
  • tests/: .blend fixtures and semantic golden data.
  • docs/status/: machine-readable and task-specific parity ledger.

Verification

source tools/web/emscripten-env.sh
cmake --build build_web_blender6 --target web_engine -- -j8
bash tools/web/install-web-engine-assets.sh
npm --prefix web ci
npm --prefix web run typecheck
npm --prefix web run lint
npm --prefix web run build
npm --prefix web run test:browser

See docs/EXECUTION_QUEUE.md for the current task pointer, docs/CONTEXT_BUDGET.md for the small-context execution rules, and docs/README.md for the document map, docs/PROJECT_STATUS_AND_NEXT_WORK.md for the implemented scope, and docs/BLENDER_5_2_FULL_WEB_PARITY_EXECUTION_PLAN.md for the normative M12-M23 full-parity execution plan. The domain overview and coverage cross-check are in docs/BLENDER_5_2_WEB_FEATURE_PARITY.md and docs/BLENDER_5_2_FULL_PARITY_WBS.md.

The release contract and explicit non-goals are defined in docs/WEB_BLENDER_MODELER_V1_SCOPE.md.

Description
Blender 5.2 WebAssembly editor runtime, Chromium baseline
Readme 3.5 GiB
Languages
C++ 70%
Python 15.7%
TypeScript 5.1%
JavaScript 4.2%
C 1.4%
Other 3.4%