Files
workinf_Blender_Wasm/docs/status/WEB-MATERIAL-UNDO-REDO-20261122.md
mes123456 63db6caf1f
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
feat(web): studio worlds, camera-view/offscreen environment parity, material and undo coverage
Environment lighting:
- ship all eight desktop studiolights/world datasets (WBENV1 float32) and a
  shared loader used by both the main viewport and the offscreen worker
- add the N-panel "studio 环境" selector
- rotate the world background together with the environment
  (backgroundRotation/backgroundIntensity), so camera view and offscreen
  renders match the desktop Mapping-node behaviour

Verification (Chromium, OPFS, NOT_CLAIMED):
- environment lighting + 8 world pixel identity
- camera-view rotation correspondence (camera matrices, 207 samples)
- offscreen vs on-screen background parity after hiding geometry (1305 samples)
- metals case extended with material-field OPFS roundtrip
- material Principled edits and rename undo/redo
- eight studio worlds: pairwise frame differences + luminance rank correlation
- undo history depth capped at 64 steps and undo across OPFS save/reopen

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 09:27:47 +08:00

2.2 KiB
Raw Blame History

WEB-MATERIAL-UNDO-REDO-20261122 status

  • case: WEB-MATERIAL-UNDO-REDO-20261122(材质 Principled 编辑与重命名进入原生撤销/重做)
  • 类型:用户案例补缺(此前如实记录的剩余缺口:材质编辑 undo/redo);不是队列任务,未改动 docs/EXECUTION_QUEUE.md 与 nextTask
  • 与文件系统的关系:撤销/重做走原生 Main 事务(每次 applyCommand 一个 undo step),不经文件系统;用例的工程存储仍为 OPFS(storage: "OPFS",全程 downloads: [])。
  • 改动文件(当前哈希):
    • web/tests/e2e/wbv2-material-undo-redo-production.spec.ts(32212cc1…fee24a,新增)
    • 产品路径本身未改:App.tsx 材质面板「应用 Principled」→ applyEditCommand → setMaterialPrincipled;顶栏「撤销」「重做」→ { type: "undo" | "redo" } → 原生 undo 栈(web_engine_main_state.cpp 的 ED_undo_push / applyCommand 事务)
  • 流程(全部经产品入口,fixture tests/files/web/basic_scene.blend):
    1. 添加猴头 → 新增槽 → 材质名称 UndoGold → 记录未修改的 Principled 基线(metallic 0、roughness 0.5、baseColor 0.8);
    2. 基础色 #ffd700、粗糙度 0.2、金属度 1 → 「应用 Principled」→ 快照 metallic=1、roughness=0.2、baseColor≈(1, 0.679, 0);
    3. 「撤销」→ 材质 id/名称不变,metallic/roughness/baseColor 逐项回到基线(1e-3 容差);
    4. 「重做」→ 金色参数逐项恢复;
    5. 重命名 UndoGoldRenamed → 「撤销」回到 UndoGold、新名不存在 → 「重做」恢复新名且材质 id 不变。
  • 结果:1 passed (15.4s);baselineRevision 4 → appliedRevision 5 → finalRevision 10;证据 tests/golden/WEB-MATERIAL-UNDO-REDO-20261122/material-undo-redo.json(含 baseline/applied/undone/redone 完整材质快照与下载监听)。
  • 未验证 / 剩余缺口:
    • 节点编辑器里逐个 socket 编辑的撤销(本用例覆盖面板 Principled 与 renameId 两条命令);
    • 撤销历史的深度上限/跨保存恢复行为未验证。
  • 验收:NOT_CLAIMED。
  • 下一动作:如需继续,覆盖节点 socket 编辑的 undo/redo。