fix(web): make WASM compositor evaluation produce an image
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:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user