Complete Lattice modifier gap
This commit is contained in:
@@ -9,10 +9,10 @@
|
|||||||
| 字段 | 值 |
|
| 字段 | 值 |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| 里程碑 | M16 Main、Mesh、Modifier、Sculpt |
|
| 里程碑 | M16 Main、Mesh、Modifier、Sculpt |
|
||||||
| 当前任务 | `M16-GAP-00075` |
|
| 当前任务 | `M16-GAP-00076` |
|
||||||
| parent manifest | `tests/golden/M16-GAP-00074/manifest.json` |
|
| parent manifest | `tests/golden/M16-GAP-00075/manifest.json` |
|
||||||
| 任务卡 | [`tasks/M16-GAP-00075.md`](tasks/M16-GAP-00075.md) |
|
| 任务卡 | [`tasks/M16-GAP-00076.md`](tasks/M16-GAP-00076.md) |
|
||||||
| 专项验收 | `npm --prefix web run test:generated-gap -- --task M16-GAP-00075` |
|
| 专项验收 | `npm --prefix web run test:generated-gap -- --task M16-GAP-00076` |
|
||||||
|
|
||||||
领取前执行:
|
领取前执行:
|
||||||
|
|
||||||
|
|||||||
18
docs/status/M16-GAP-00075.md
Normal file
18
docs/status/M16-GAP-00075.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# M16-GAP-00075 Status
|
||||||
|
|
||||||
|
status: done
|
||||||
|
task: LATTICE modifier LOCAL_EXACT slice
|
||||||
|
updated: 2026-08-20 America/New_York
|
||||||
|
|
||||||
|
scope: Mesh LATTICE modifier stack exposure for `object:WebGapLatticeModifierObject`.
|
||||||
|
|
||||||
|
evidence:
|
||||||
|
|
||||||
|
- Desktop fixture exposes `WebGapLatticeModifier`; save/reopen is exact.
|
||||||
|
- WASM/Main exposes LATTICE type code 2 and metadata parameters on the mesh scene node.
|
||||||
|
- Malformed Blend input is rejected without mutating Main.
|
||||||
|
- Generator and npm comparator exited 0.
|
||||||
|
|
||||||
|
knownRisk: Lattice deformation evaluation remains metadata-only; this slice covers modifier stack transport and metadata.
|
||||||
|
|
||||||
|
nextTask: `M16-GAP-00076`
|
||||||
37
docs/tasks/M16-GAP-00076.md
Normal file
37
docs/tasks/M16-GAP-00076.md
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
# M16-GAP-00076: modifier:LINEART LOCAL_EXACT slice
|
||||||
|
|
||||||
|
- task: M16-GAP-00076
|
||||||
|
- parent: M16-GAP-00075
|
||||||
|
- status: in_progress
|
||||||
|
- gap: modifier:LINEART
|
||||||
|
- ownerFamily: MODIFIER
|
||||||
|
- targetImplementationClass: LOCAL_EXACT
|
||||||
|
|
||||||
|
## 目标
|
||||||
|
|
||||||
|
Make the same minimal fixture produce observable modifier:LINEART 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-00076-modifier-LINEART.blend`
|
||||||
|
- Generator: `tools/web/generated/M16-GAP-00076.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-00076.py -- tests/files/web/generated/M16-GAP-00076-modifier-LINEART.blend
|
||||||
|
npm --prefix web run test:generated-gap -- --task M16-GAP-00076
|
||||||
|
node tools/web/check-generated-gap.mjs --task M16-GAP-00076
|
||||||
|
|
||||||
|
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-00076/`
|
||||||
|
- Status: `docs/status/M16-GAP-00076.md`
|
||||||
|
- Manifest: `tests/golden/M16-GAP-00076/manifest.json`
|
||||||
|
- Handoff: `node tools/web/check-task-context.mjs --task M16-GAP-00076 --write`
|
||||||
|
- Rollback: remove this task production entry, fixture, tests, reports, manifest, status, and context; restore the parent as queue tail without rewriting parent evidence.
|
||||||
BIN
tests/files/web/generated/M16-GAP-00075-modifier-LATTICE.blend
Normal file
BIN
tests/files/web/generated/M16-GAP-00075-modifier-LATTICE.blend
Normal file
Binary file not shown.
@@ -1740,7 +1740,7 @@
|
|||||||
"gapId": "modifier:LATTICE",
|
"gapId": "modifier:LATTICE",
|
||||||
"ownerFamily": "MODIFIER",
|
"ownerFamily": "MODIFIER",
|
||||||
"sourceTask": "M15-01C",
|
"sourceTask": "M15-01C",
|
||||||
"state": "active",
|
"state": "completed",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"targetImplementationClass": "LOCAL_EXACT",
|
"targetImplementationClass": "LOCAL_EXACT",
|
||||||
"fixture": {
|
"fixture": {
|
||||||
@@ -1763,7 +1763,7 @@
|
|||||||
"gapId": "modifier:LINEART",
|
"gapId": "modifier:LINEART",
|
||||||
"ownerFamily": "MODIFIER",
|
"ownerFamily": "MODIFIER",
|
||||||
"sourceTask": "M15-01C",
|
"sourceTask": "M15-01C",
|
||||||
"state": "pending",
|
"state": "active",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"targetImplementationClass": "LOCAL_EXACT",
|
"targetImplementationClass": "LOCAL_EXACT",
|
||||||
"fixture": {
|
"fixture": {
|
||||||
@@ -158734,7 +158734,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"firstTask": "M16-GAP-00075",
|
"firstTask": "M16-GAP-00076",
|
||||||
"closureGate": "M15-03E",
|
"closureGate": "M15-03E",
|
||||||
"nextTask": "M15-03B"
|
"nextTask": "M15-03B"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,8 +72,8 @@
|
|||||||
{"id":"M16-GAP-00072","gapId":"modifier:HOOK","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
{"id":"M16-GAP-00072","gapId":"modifier:HOOK","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
||||||
{"id":"M16-GAP-00073","gapId":"modifier:LAPLACIANDEFORM","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
{"id":"M16-GAP-00073","gapId":"modifier:LAPLACIANDEFORM","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
||||||
{"id":"M16-GAP-00074","gapId":"modifier:LAPLACIANSMOOTH","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
{"id":"M16-GAP-00074","gapId":"modifier:LAPLACIANSMOOTH","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
||||||
{"id":"M16-GAP-00075","gapId":"modifier:LATTICE","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"active","targetImplementationClass":"LOCAL_EXACT"}
|
{"id":"M16-GAP-00075","gapId":"modifier:LATTICE","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
||||||
{"id":"M16-GAP-00076","gapId":"modifier:LINEART","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
{"id":"M16-GAP-00076","gapId":"modifier:LINEART","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"active","targetImplementationClass":"LOCAL_EXACT"}
|
||||||
{"id":"M16-GAP-00077","gapId":"modifier:MASK","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
{"id":"M16-GAP-00077","gapId":"modifier:MASK","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
||||||
{"id":"M16-GAP-00078","gapId":"modifier:MESH_CACHE","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
{"id":"M16-GAP-00078","gapId":"modifier:MESH_CACHE","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
||||||
{"id":"M16-GAP-00079","gapId":"modifier:MESH_DEFORM","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
{"id":"M16-GAP-00079","gapId":"modifier:MESH_DEFORM","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"blenderVersion": "5.2.0 LTS",
|
||||||
|
"fixture": "/home/mes123456/workinf_Blender_Wasm/tests/files/web/generated/M16-GAP-00075-modifier-LATTICE.blend",
|
||||||
|
"fixtureSha256": "907149629b82fb0289da70535b29cea8bae0b24d745b92c0d4116a3a24b95494",
|
||||||
|
"modifier": {
|
||||||
|
"meshId": "mesh:WebGapLatticeModifierObjectMesh",
|
||||||
|
"modifier": {
|
||||||
|
"name": "WebGapLatticeModifier",
|
||||||
|
"showEditMode": false,
|
||||||
|
"showOnCage": false,
|
||||||
|
"showRender": true,
|
||||||
|
"showViewport": true,
|
||||||
|
"type": "LATTICE",
|
||||||
|
"typeCode": 2
|
||||||
|
},
|
||||||
|
"objectId": "object:WebGapLatticeModifierObject",
|
||||||
|
"task": "M16-GAP-00075"
|
||||||
|
},
|
||||||
|
"operation": "LATTICE_MODIFIER_DESKTOP",
|
||||||
|
"saveReopen": "EXACT",
|
||||||
|
"schemaVersion": 1,
|
||||||
|
"task": "M16-GAP-00075"
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 1,
|
||||||
|
"task": "M16-GAP-00075",
|
||||||
|
"operation": "LATTICE_MODIFIER_LOCAL_EXACT",
|
||||||
|
"fixture": {
|
||||||
|
"path": "tests/files/web/generated/M16-GAP-00075-modifier-LATTICE.blend",
|
||||||
|
"sha256": "907149629b82fb0289da70535b29cea8bae0b24d745b92c0d4116a3a24b95494"
|
||||||
|
},
|
||||||
|
"desktop": {
|
||||||
|
"status": "EXACT",
|
||||||
|
"report": "tests/golden/M16-GAP-00075/lattice-modifier-desktop-report.json",
|
||||||
|
"saveReopen": "EXACT"
|
||||||
|
},
|
||||||
|
"wasm": {
|
||||||
|
"status": "EXACT",
|
||||||
|
"objectId": "object:WebGapLatticeModifierObject",
|
||||||
|
"meshId": "mesh:WebGapLatticeModifierObjectMesh",
|
||||||
|
"modifier": {
|
||||||
|
"dependsOn": [],
|
||||||
|
"enabled": true,
|
||||||
|
"evaluationStatus": "METADATA_ONLY",
|
||||||
|
"name": "WebGapLatticeModifier",
|
||||||
|
"parameters": {
|
||||||
|
"flag": 5,
|
||||||
|
"latticeFlags": 0,
|
||||||
|
"mode": 3,
|
||||||
|
"persistentUid": 140212469,
|
||||||
|
"strength": 1,
|
||||||
|
"typeCode": 2,
|
||||||
|
"vertexGroup": ""
|
||||||
|
},
|
||||||
|
"showEditMode": false,
|
||||||
|
"showOnCage": false,
|
||||||
|
"showRender": true,
|
||||||
|
"showViewport": true,
|
||||||
|
"type": "LATTICE",
|
||||||
|
"uuid": "modifier:object:WebGapLatticeModifierObject:140212469"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"saveReopen": "EXACT",
|
||||||
|
"negative": {
|
||||||
|
"malformedBlend": "REJECTED_WITHOUT_MAIN_MUTATION"
|
||||||
|
},
|
||||||
|
"nextTask": "M16-GAP-00076"
|
||||||
|
}
|
||||||
24
tests/golden/M16-GAP-00075/manifest.json
Normal file
24
tests/golden/M16-GAP-00075/manifest.json
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"schemaVersion": 1,
|
||||||
|
"task": "M16-GAP-00075",
|
||||||
|
"parentTask": "M16-GAP-00074",
|
||||||
|
"enablingTask": false,
|
||||||
|
"parityStateChange": true,
|
||||||
|
"runtime": "BLENDER_5_2_LOCAL_EXACT",
|
||||||
|
"operation": "LATTICE_MODIFIER_LOCAL_EXACT",
|
||||||
|
"status": "done",
|
||||||
|
"artifacts": {
|
||||||
|
"parentManifest": {"path": "tests/golden/M16-GAP-00074/manifest.json", "sha256": "93125c3550c043e2c07c50d99c9b683214d851000cc7e7030b0cc118a4031622"},
|
||||||
|
"fixture": {"path": "tests/files/web/generated/M16-GAP-00075-modifier-LATTICE.blend", "sha256": "907149629b82fb0289da70535b29cea8bae0b24d745b92c0d4116a3a24b95494"},
|
||||||
|
"generator": {"path": "tools/web/generated/M16-GAP-00075.py", "sha256": "d5d161608d986e04d66afb8871ef34eae2c27bbf8fe654b2982c6a10553150eb"},
|
||||||
|
"desktopChecker": {"path": "tools/web/check-generic-modifier-desktop.py", "sha256": "3a372e870f14c4559ee921aef1fbe086eccd609a0af5917e5b4872468ca22e51"},
|
||||||
|
"webChecker": {"path": "tools/web/check-generated-gap.mjs", "sha256": "1f97a64d7798ddd4f06af5953d79f882ae5fc2e29eedbe5746297c3df9d189e7"},
|
||||||
|
"reader": {"path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp", "sha256": "db4807b05b0c71658115e321712b9b46cbd3bf814c96a56d3c0766f97fe98f7e"},
|
||||||
|
"wasm": {"path": "web/app/src/vendor/blender/web_engine.wasm", "sha256": "a1c778de8f065de2a54ee300deeff142f4a60629d57b61cbe8d46c8cc8a1fe2c"},
|
||||||
|
"wasmPublic": {"path": "web/app/public/vendor/blender/web_engine.wasm", "sha256": "a1c778de8f065de2a54ee300deeff142f4a60629d57b61cbe8d46c8cc8a1fe2c"},
|
||||||
|
"wasmJs": {"path": "web/app/src/vendor/blender/web_engine.js", "sha256": "9c831d0351ac9d0714cce3b1da748cba416ced3086e3c59595cf24ac4da459ed"},
|
||||||
|
"desktopReport": {"path": "tests/golden/M16-GAP-00075/lattice-modifier-desktop-report.json", "sha256": "c06a312fdf79abca4eb6560e271e62adfdc79e4b8fd61db57cf53c148195cd6a"},
|
||||||
|
"webReport": {"path": "tests/golden/M16-GAP-00075/lattice-modifier-local-exact-report.json", "sha256": "62bf9e34273df25cddda1f64b614626cac4163e861c253cb44b39624390266f5"}
|
||||||
|
},
|
||||||
|
"nextTask": "M16-GAP-00076"
|
||||||
|
}
|
||||||
@@ -1102,6 +1102,7 @@ const genericModifierTasks = {
|
|||||||
"M16-GAP-00072": { type: "HOOK", stem: "WebGapHook", nextTask: "M16-GAP-00073" },
|
"M16-GAP-00072": { type: "HOOK", stem: "WebGapHook", nextTask: "M16-GAP-00073" },
|
||||||
"M16-GAP-00073": { type: "LAPLACIANDEFORM", stem: "WebGapLaplacianDeform", nextTask: "M16-GAP-00074" },
|
"M16-GAP-00073": { type: "LAPLACIANDEFORM", stem: "WebGapLaplacianDeform", nextTask: "M16-GAP-00074" },
|
||||||
"M16-GAP-00074": { type: "LAPLACIANSMOOTH", stem: "WebGapLaplacianSmooth", nextTask: "M16-GAP-00075" },
|
"M16-GAP-00074": { type: "LAPLACIANSMOOTH", stem: "WebGapLaplacianSmooth", nextTask: "M16-GAP-00075" },
|
||||||
|
"M16-GAP-00075": { type: "LATTICE", stem: "WebGapLatticeModifier", nextTask: "M16-GAP-00076" },
|
||||||
};
|
};
|
||||||
if (genericModifierTasks[task]) {
|
if (genericModifierTasks[task]) {
|
||||||
const config = genericModifierTasks[task];
|
const config = genericModifierTasks[task];
|
||||||
|
|||||||
13
tools/web/generated/M16-GAP-00075.py
Normal file
13
tools/web/generated/M16-GAP-00075.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import pathlib
|
||||||
|
import sys
|
||||||
|
|
||||||
|
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent))
|
||||||
|
from modifier_gap_fixture import generate
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
arguments = sys.argv[sys.argv.index("--") + 1:]
|
||||||
|
if len(arguments) != 1:
|
||||||
|
raise SystemExit("usage: blender -b --python M16-GAP-00075.py -- OUTPUT")
|
||||||
|
generate(pathlib.Path(arguments[0]), "LATTICE", "WebGapLatticeModifier")
|
||||||
Reference in New Issue
Block a user