Complete M16 driver button add parity

This commit is contained in:
mes123456
2026-08-21 22:25:00 -04:00
parent 46c9ebfcb6
commit 946a83273c
16 changed files with 299 additions and 69 deletions

View File

@@ -9,10 +9,10 @@
| 字段 | 值 |
| --- | --- |
| 里程碑 | M16 Main、Mesh、Modifier、Sculpt |
| 当前任务 | `M16-GAP-00174` |
| parent manifest | `tests/golden/M16-GAP-00173/manifest.json` |
| 任务卡 | [`tasks/M16-GAP-00174.md`](tasks/M16-GAP-00174.md) |
| 专项验收 | `npm --prefix web run test:generated-gap -- --task M16-GAP-00174` |
| 当前任务 | `M16-GAP-00175` |
| parent manifest | `tests/golden/M16-GAP-00174/manifest.json` |
| 任务卡 | [`tasks/M16-GAP-00175.md`](tasks/M16-GAP-00175.md) |
| 专项验收 | `npm --prefix web run test:generated-gap -- --task M16-GAP-00175` |
领取前执行:

View File

@@ -1,18 +1,17 @@
# M16-GAP-00174 Status
status: in_progress
status: done
task: anim.driver_button_add operator LOCAL_EXACT slice
updated: 2026-08-21 America/New_York
scope:
- The minimal fixture contains an un-driven `drive_target` property; the reader preserves the object and the absence of drivers for WASM/Main.
- The minimal fixture contains an un-driven `drive_target` property; foreground Chromium-compatible Blender UI automation invokes `ANIM_OT_driver_button_add` on that exact RNA button and the reader preserves the resulting driver for WASM/Main.
evidence:
- Blender desktop reaches the mandated Properties context, where `ANIM_OT_driver_button_add` reports `poll=false` because no active RNA button exists in `-b`; no operator mutation occurs.
- Desktop and WASM/Main preserve the same un-driven object; save/reopen is exact and malformed Blend input is rejected without Main mutation.
- Fixture generation, desktop checker, npm comparator, direct comparator, and artifact hashing passed.
- Cancellation is an explicit task boundary, so this task remains `in_progress` and does not advance `nextTask`.
- Blender desktop registers a focused Properties panel, activates the real RNA button, and invokes `ANIM_OT_driver_button_add` through the UI context (`poll=true`, `FINISHED`, `DRIVER_ADDED`).
- Desktop and WASM/Main expose the same scripted driver on `["drive_target"]` (`var + 4.5`, one default transform variable); save/reopen is exact and malformed Blend input is rejected without Main mutation.
- Fixture generation, foreground desktop checker, npm comparator, direct comparator, governance, and artifact hashing passed. The checker is idempotent for the already-mutated exact fixture.
nextTask: `M16-GAP-00174`
nextTask: `M16-GAP-00175`

View File

@@ -0,0 +1,37 @@
# M16-GAP-00175: operator:anim.driver_button_edit LOCAL_EXACT slice
- task: M16-GAP-00175
- parent: M16-GAP-00174
- status: in_progress
- gap: operator:anim.driver_button_edit
- ownerFamily: OPERATOR
- targetImplementationClass: LOCAL_EXACT
## 目标
Make the same minimal fixture produce observable operator:anim.driver_button_edit data in Blender desktop and WASM/Main, with save/reopen stability. Change only this gap; do not expand to other data-blocks, editors, or browsers.
## 输入与范围
- Fixture: `tests/files/web/generated/M16-GAP-00175-operator-anim.driver_button_edit.blend`
- Generator: `tools/web/generated/M16-GAP-00175.py`
- Production: `blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp`
- Checker: `tools/web/check-generated-gap.mjs`
- Do: field read, desktop/WASM comparison, save/reopen, structured report.
- Do not: other gaps, Firefox/WebKit, or full editor behavior.
## 验收
build_blender_5.2.0/bin/blender -b --factory-startup --python tools/web/generated/M16-GAP-00175.py -- tests/files/web/generated/M16-GAP-00175-operator-anim.driver_button_edit.blend
npm --prefix web run test:generated-gap -- --task M16-GAP-00175
node tools/web/check-generated-gap.mjs --task M16-GAP-00175
Malformed/unsupported, cancellation, duplicate, over-budget, or hash-drift cases must keep in_progress; they must not change Main revision or advance nextTask.
## 交付与回滚
- Reports: `tests/golden/M16-GAP-00175/`
- Status: `docs/status/M16-GAP-00175.md`
- Manifest: `tests/golden/M16-GAP-00175/manifest.json`
- Handoff: `node tools/web/check-task-context.mjs --task M16-GAP-00175 --write`
- Rollback: remove this task production entry, fixture, tests, reports, manifest, status, and context; restore the parent as queue tail without rewriting parent evidence.