fix(web): make WASM compositor evaluation produce an image
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

Initialize the preview RenderResult before compositing and serve the result
via a blob URL so the deployment CSP accepts it. Verified RGB→Composite
returns 1024×1024 and the Properties button displays it.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-14 07:54:31 +08:00
parent fe253bd9b2
commit 0274b58c18
8 changed files with 44 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"task": "WBV2-P1425-001",
"updatedAt": "2026-11-14T07:49:00+08:00",
"updatedAt": "2026-11-14T07:54:00+08:00",
"status": "in_progress",
"focus": "COMPLETE-TUTORIAL-001 backend export gap (USD/Alembic)",
"breakpoint": "blender-5.2.0/source/blender/web_engine/CMakeLists.txt (USD wiring); WASM 6ee2b261",
@@ -238,9 +238,13 @@
"acceptance": "NOT_CLAIMED"
},
"compositorEval": {
"fix": "force scene.r.compositor_device=CPU during the WASM compositor preview evaluation and restore it after (removes the Browser draw manager GPU-context error)",
"residual": "valid RGB→Composite graph still returns COMPOSITOR_RESULT_MISSING (no combined RenderResult); needs render-result initialization",
"wasmSha256": "198d2f01e8205d7316fa56e763d475452e82eb85d8cf3eb888ac98e2264a6da6",
"fix": [
"force CPU compositor device during preview",
"RE_InitState creates the empty RenderResult/view so have_combined can be written",
"frontend uses a blob URL instead of data: (deployment CSP img-src self blob:)"
],
"result": "compositorEvaluate returns 1024x1024 (5,592,408 base64 chars); Properties button shows WASM 合成 1024×1024 image",
"wasmSha256": "be87a9ad0b777466253cc802a2482332a7f6b7b4d5cbc2ced513fbb7e7ba1146",
"script": "tools/web/complete/probe-compositor-eval.mjs",
"acceptance": "NOT_CLAIMED"
}