Complete Smooth modifier gap
This commit is contained in:
@@ -1603,8 +1603,10 @@ json modifier_parameters(const ParsedBlend &blend,
|
||||
parameters["meshDeformFlags"] = read_integer(*blend.sdna, modifier, "flag").value_or(0);
|
||||
break;
|
||||
case 16:
|
||||
parameters["vertexGroup"] = read_string(*blend.sdna, modifier, "defgrp_name");
|
||||
parameters["factor"] = read_float(*blend.sdna, modifier, "fac").value_or(0.5f);
|
||||
parameters["repeat"] = read_integer(*blend.sdna, modifier, "repeat").value_or(1);
|
||||
parameters["smoothFlags"] = read_integer(*blend.sdna, modifier, "flag").value_or(14);
|
||||
break;
|
||||
case 17:
|
||||
append_target("object");
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
| 字段 | 值 |
|
||||
| --- | --- |
|
||||
| 里程碑 | M16 Main、Mesh、Modifier、Sculpt |
|
||||
| 当前任务 | `M16-GAP-00094` |
|
||||
| parent manifest | `tests/golden/M16-GAP-00093/manifest.json` |
|
||||
| 任务卡 | [`tasks/M16-GAP-00094.md`](tasks/M16-GAP-00094.md) |
|
||||
| 专项验收 | `npm --prefix web run test:generated-gap -- --task M16-GAP-00094` |
|
||||
| 当前任务 | `M16-GAP-00095` |
|
||||
| parent manifest | `tests/golden/M16-GAP-00094/manifest.json` |
|
||||
| 任务卡 | [`tasks/M16-GAP-00095.md`](tasks/M16-GAP-00095.md) |
|
||||
| 专项验收 | `npm --prefix web run test:generated-gap -- --task M16-GAP-00095` |
|
||||
|
||||
领取前执行:
|
||||
|
||||
|
||||
18
docs/status/M16-GAP-00094.md
Normal file
18
docs/status/M16-GAP-00094.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# M16-GAP-00094 Status
|
||||
|
||||
status: done
|
||||
task: SMOOTH modifier LOCAL_EXACT slice
|
||||
updated: 2026-08-20 America/New_York
|
||||
|
||||
scope: Mesh SMOOTH modifier stack exposure for `mesh:WebGapSmoothMesh`.
|
||||
|
||||
evidence:
|
||||
|
||||
- Desktop fixture exposes `WebGapSmooth` as SMOOTH type code 16 with non-default factor, iterations, axis flags, and vertex group; save/reopen is exact.
|
||||
- WASM/Main exposes the same SMOOTH fields as `METADATA_ONLY`; save/reopen is exact.
|
||||
- Malformed Blend input is rejected without mutating Main.
|
||||
- Generator, npm comparator, and direct comparator exited 0.
|
||||
|
||||
knownRisk: Smooth geometry evaluation remains metadata-only; this slice covers modifier stack transport and stable modifier metadata.
|
||||
|
||||
nextTask: `M16-GAP-00095`
|
||||
37
docs/tasks/M16-GAP-00095.md
Normal file
37
docs/tasks/M16-GAP-00095.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# M16-GAP-00095: modifier:SOFT_BODY LOCAL_EXACT slice
|
||||
|
||||
- task: M16-GAP-00095
|
||||
- parent: M16-GAP-00094
|
||||
- status: in_progress
|
||||
- gap: modifier:SOFT_BODY
|
||||
- ownerFamily: MODIFIER
|
||||
- targetImplementationClass: LOCAL_EXACT
|
||||
|
||||
## 目标
|
||||
|
||||
Make the same minimal fixture produce observable modifier:SOFT_BODY 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-00095-modifier-SOFT_BODY.blend`
|
||||
- Generator: `tools/web/generated/M16-GAP-00095.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-00095.py -- tests/files/web/generated/M16-GAP-00095-modifier-SOFT_BODY.blend
|
||||
npm --prefix web run test:generated-gap -- --task M16-GAP-00095
|
||||
node tools/web/check-generated-gap.mjs --task M16-GAP-00095
|
||||
|
||||
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-00095/`
|
||||
- Status: `docs/status/M16-GAP-00095.md`
|
||||
- Manifest: `tests/golden/M16-GAP-00095/manifest.json`
|
||||
- Handoff: `node tools/web/check-task-context.mjs --task M16-GAP-00095 --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-00094-modifier-SMOOTH.blend
Normal file
BIN
tests/files/web/generated/M16-GAP-00094-modifier-SMOOTH.blend
Normal file
Binary file not shown.
@@ -19,8 +19,8 @@
|
||||
"summary": {
|
||||
"taskCount": 6900,
|
||||
"active": 1,
|
||||
"pending": 6812,
|
||||
"completed": 87,
|
||||
"pending": 6811,
|
||||
"completed": 88,
|
||||
"blocked": 0,
|
||||
"byWave": {
|
||||
"M16": 2667,
|
||||
@@ -2177,7 +2177,7 @@
|
||||
"gapId": "modifier:SMOOTH",
|
||||
"ownerFamily": "MODIFIER",
|
||||
"sourceTask": "M15-01C",
|
||||
"state": "active",
|
||||
"state": "completed",
|
||||
"dependencies": [],
|
||||
"targetImplementationClass": "LOCAL_EXACT",
|
||||
"fixture": {
|
||||
@@ -2200,7 +2200,7 @@
|
||||
"gapId": "modifier:SOFT_BODY",
|
||||
"ownerFamily": "MODIFIER",
|
||||
"sourceTask": "M15-01C",
|
||||
"state": "pending",
|
||||
"state": "active",
|
||||
"dependencies": [],
|
||||
"targetImplementationClass": "LOCAL_EXACT",
|
||||
"fixture": {
|
||||
@@ -158734,7 +158734,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"firstTask": "M16-GAP-00094",
|
||||
"firstTask": "M16-GAP-00095",
|
||||
"closureGate": "M15-03E",
|
||||
"nextTask": "M15-03B"
|
||||
}
|
||||
|
||||
@@ -91,8 +91,8 @@
|
||||
{"id":"M16-GAP-00091","gapId":"modifier:SHRINKWRAP","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
||||
{"id":"M16-GAP-00092","gapId":"modifier:SIMPLE_DEFORM","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
||||
{"id":"M16-GAP-00093","gapId":"modifier:SKIN","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
||||
{"id":"M16-GAP-00094","gapId":"modifier:SMOOTH","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"active","targetImplementationClass":"LOCAL_EXACT"}
|
||||
{"id":"M16-GAP-00095","gapId":"modifier:SOFT_BODY","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
||||
{"id":"M16-GAP-00094","gapId":"modifier:SMOOTH","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"completed","targetImplementationClass":"LOCAL_EXACT"}
|
||||
{"id":"M16-GAP-00095","gapId":"modifier:SOFT_BODY","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"active","targetImplementationClass":"LOCAL_EXACT"}
|
||||
{"id":"M16-GAP-00096","gapId":"modifier:SOLIDIFY","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
||||
{"id":"M16-GAP-00097","gapId":"modifier:SUBSURF","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
||||
{"id":"M16-GAP-00098","gapId":"modifier:SURFACE","ownerFamily":"MODIFIER","sourceTask":"M15-01C","state":"pending","targetImplementationClass":"LOCAL_EXACT"}
|
||||
|
||||
File diff suppressed because one or more lines are too long
28
tests/golden/M16-GAP-00094/manifest.json
Normal file
28
tests/golden/M16-GAP-00094/manifest.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "M16-GAP-00094",
|
||||
"parentTask": "M16-GAP-00093",
|
||||
"enablingTask": false,
|
||||
"parityStateChange": true,
|
||||
"runtime": "BLENDER_5_2_LOCAL_EXACT",
|
||||
"operation": "SMOOTH_MODIFIER_LOCAL_EXACT",
|
||||
"status": "done",
|
||||
"artifacts": {
|
||||
"parentManifest": {"path": "tests/golden/M16-GAP-00093/manifest.json", "sha256": "80353dc192b8e9e21624ab1acb0102648d6e743c36bfac2af5ddb92707f414b5"},
|
||||
"fixture": {"path": "tests/files/web/generated/M16-GAP-00094-modifier-SMOOTH.blend", "sha256": "2e416d62faeeb22313d56ba073cb184618f80b751cf31f100ce8e0c78565de02"},
|
||||
"generator": {"path": "tools/web/generated/M16-GAP-00094.py", "sha256": "3e10f94a84a52c1b6114d1d6fcf764481b8bf79dfc8cb533389c016c34c36938"},
|
||||
"desktopChecker": {"path": "tools/web/check-generic-modifier-desktop.py", "sha256": "229b09fbdcc541d0c2a2367d420c3f0d5c623621ed10143896a374f1ce072687"},
|
||||
"webChecker": {"path": "tools/web/check-generated-gap.mjs", "sha256": "12dfca701287049fd4adc05b6e2ac475775c1c52a9527b93158f0d2a9581e99c"},
|
||||
"reader": {"path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp", "sha256": "01cc2be8069f18ed1cde6ed28efa840e3b79efdf4f295a37dcab10b35ca58506"},
|
||||
"modifierCmake": {"path": "blender-5.2.0/source/blender/modifiers/CMakeLists.txt", "sha256": "acf2c49dcea2907a117efdf8d74d4d817a4456a41c6bec3a40f38263beaae127"},
|
||||
"particleModifier": {"path": "blender-5.2.0/source/blender/modifiers/intern/MOD_particlesystem.cc", "sha256": "92ea7223c192563062d9f485c45cc78290a8809eb79d3a28be12081a0c7d6e6f"},
|
||||
"particleCore": {"path": "blender-5.2.0/source/blender/blenkernel/intern/particle.cc", "sha256": "d712f922c3160bddb464e3b7e1f68bfc44591dd9e536f4fd901119025d17717c"},
|
||||
"physicsReader": {"path": "blender-5.2.0/source/blender/web_engine/web_engine_main_state.cpp", "sha256": "62af46e404d6174cc4b9d85adb6e8b259f1c537e5ebfd8485e4fd0cc4be0fded"},
|
||||
"wasm": {"path": "web/app/src/vendor/blender/web_engine.wasm", "sha256": "ffd2a606a83140661e14b0d916f5775c8eb60197f6cdccd96a64fadaacb160f4"},
|
||||
"wasmPublic": {"path": "web/app/public/vendor/blender/web_engine.wasm", "sha256": "ffd2a606a83140661e14b0d916f5775c8eb60197f6cdccd96a64fadaacb160f4"},
|
||||
"wasmJs": {"path": "web/app/src/vendor/blender/web_engine.js", "sha256": "9c831d0351ac9d0714cce3b1da748cba416ced3086e3c59595cf24ac4da459ed"},
|
||||
"desktopReport": {"path": "tests/golden/M16-GAP-00094/smooth-modifier-desktop-report.json", "sha256": "762f02f1f460bd1deb71a7441ff85b969ff8ef916b32d95e46fe243ce110d1cb"},
|
||||
"webReport": {"path": "tests/golden/M16-GAP-00094/smooth-modifier-local-exact-report.json", "sha256": "0373da7c5ce2b369840c080bfe5dd341596208098fc2f3c3ae864031d965bc6c"}
|
||||
},
|
||||
"nextTask": "M16-GAP-00095"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"blenderVersion": "5.2.0 LTS",
|
||||
"fixture": "/home/mes123456/workinf_Blender_Wasm/tests/files/web/generated/M16-GAP-00094-modifier-SMOOTH.blend",
|
||||
"fixtureSha256": "2e416d62faeeb22313d56ba073cb184618f80b751cf31f100ce8e0c78565de02",
|
||||
"modifier": {
|
||||
"meshId": "mesh:WebGapSmoothMesh",
|
||||
"modifier": {
|
||||
"factor": 0.375,
|
||||
"iterations": 3,
|
||||
"name": "WebGapSmooth",
|
||||
"showEditMode": false,
|
||||
"showOnCage": false,
|
||||
"showRender": false,
|
||||
"showViewport": true,
|
||||
"smoothFlags": 11,
|
||||
"type": "SMOOTH",
|
||||
"typeCode": 16,
|
||||
"vertexGroup": "WebGapSmoothWeights"
|
||||
},
|
||||
"objectId": "object:WebGapSmoothObject",
|
||||
"task": "M16-GAP-00094"
|
||||
},
|
||||
"operation": "SMOOTH_MODIFIER_DESKTOP",
|
||||
"saveReopen": "EXACT",
|
||||
"schemaVersion": 1,
|
||||
"task": "M16-GAP-00094"
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "M16-GAP-00094",
|
||||
"operation": "SMOOTH_MODIFIER_LOCAL_EXACT",
|
||||
"fixture": {
|
||||
"path": "tests/files/web/generated/M16-GAP-00094-modifier-SMOOTH.blend",
|
||||
"sha256": "2e416d62faeeb22313d56ba073cb184618f80b751cf31f100ce8e0c78565de02"
|
||||
},
|
||||
"desktop": {
|
||||
"status": "EXACT",
|
||||
"report": "tests/golden/M16-GAP-00094/smooth-modifier-desktop-report.json",
|
||||
"saveReopen": "EXACT"
|
||||
},
|
||||
"wasm": {
|
||||
"status": "EXACT",
|
||||
"objectId": "object:WebGapSmoothObject",
|
||||
"meshId": "mesh:WebGapSmoothMesh",
|
||||
"modifier": {
|
||||
"dependsOn": [],
|
||||
"enabled": true,
|
||||
"evaluationStatus": "METADATA_ONLY",
|
||||
"name": "WebGapSmooth",
|
||||
"parameters": {
|
||||
"factor": 0.375,
|
||||
"flag": 5,
|
||||
"mode": 1,
|
||||
"persistentUid": 486562295,
|
||||
"repeat": 3,
|
||||
"smoothFlags": 11,
|
||||
"typeCode": 16,
|
||||
"vertexGroup": "WebGapSmoothWeights"
|
||||
},
|
||||
"showEditMode": false,
|
||||
"showOnCage": false,
|
||||
"showRender": false,
|
||||
"showViewport": true,
|
||||
"type": "SMOOTH",
|
||||
"uuid": "modifier:object:WebGapSmoothObject:486562295"
|
||||
}
|
||||
},
|
||||
"saveReopen": "EXACT",
|
||||
"negative": {
|
||||
"malformedBlend": "REJECTED_WITHOUT_MAIN_MUTATION"
|
||||
},
|
||||
"nextTask": "M16-GAP-00095"
|
||||
}
|
||||
181
tests/golden/M16-GAP-00094/task-context.json
Normal file
181
tests/golden/M16-GAP-00094/task-context.json
Normal file
@@ -0,0 +1,181 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"task": "M16-GAP-00094",
|
||||
"parentTask": "M16-GAP-00093",
|
||||
"status": "in_progress",
|
||||
"goal": "Make the same minimal fixture produce observable modifier:SMOOTH 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.",
|
||||
"scope": {
|
||||
"gap": "modifier:SMOOTH",
|
||||
"ownerFamily": "MODIFIER",
|
||||
"implementationClass": "LOCAL_EXACT"
|
||||
},
|
||||
"commands": [
|
||||
"build_blender_5.2.0/bin/blender -b --factory-startup --python tools/web/generated/M16-GAP-00094.py -- tests/files/web/generated/M16-GAP-00094-modifier-SMOOTH.blend",
|
||||
"npm --prefix web run test:generated-gap -- --task M16-GAP-00094",
|
||||
"node tools/web/check-generated-gap.mjs --task M16-GAP-00094"
|
||||
],
|
||||
"inputPaths": [
|
||||
"tools/web/generated/M16-GAP-00094.py"
|
||||
],
|
||||
"inputSelection": {
|
||||
"schemaVersion": 1,
|
||||
"limits": {
|
||||
"maxFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextRemainingBytes": 6695,
|
||||
"contextRemainingTokens": 1673
|
||||
},
|
||||
"source": {
|
||||
"bytes": 7305,
|
||||
"tokens": 1827
|
||||
},
|
||||
"selected": [
|
||||
{
|
||||
"path": "tools/web/generated/M16-GAP-00094.py",
|
||||
"bytes": 1269,
|
||||
"tokens": 318
|
||||
}
|
||||
],
|
||||
"excluded": [
|
||||
{
|
||||
"path": "tests/files/web/generated/M16-GAP-00094-modifier-SMOOTH.blend",
|
||||
"bytes": 86496,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "blender-5.2.0/source/blender/web_engine/web_engine_blend_reader.cpp",
|
||||
"bytes": 221847,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tools/web/check-generated-gap.mjs",
|
||||
"bytes": 141440,
|
||||
"reason": "EVIDENCE_BYTE_BUDGET"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/M16-GAP-00094/",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "docs/status/M16-GAP-00094.md",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/M16-GAP-00094/manifest.json",
|
||||
"bytes": null,
|
||||
"reason": "GENERATED_EVIDENCE_OUTPUT"
|
||||
}
|
||||
],
|
||||
"totals": {
|
||||
"files": 1,
|
||||
"bytes": 1269,
|
||||
"tokens": 318
|
||||
}
|
||||
},
|
||||
"exitCriteria": [
|
||||
"desktop fixture evidence exists",
|
||||
"WASM uses the same fixture",
|
||||
"comparator passes",
|
||||
"save/reopen preserves Main",
|
||||
"manifest hashes all artifacts"
|
||||
],
|
||||
"nextTask": "M16-GAP-00095",
|
||||
"sourceDocuments": {
|
||||
"queue": "docs/EXECUTION_QUEUE.md",
|
||||
"taskCard": "docs/tasks/M16-GAP-00094.md",
|
||||
"taskIndex": "tests/golden/M15-03A/task-index.json",
|
||||
"parentManifest": "tests/golden/M16-GAP-00093/manifest.json",
|
||||
"parentStatus": "docs/status/M16-GAP-00093.md"
|
||||
},
|
||||
"readPolicy": {
|
||||
"required": [
|
||||
"docs/EXECUTION_QUEUE.md",
|
||||
"docs/tasks/M16-GAP-00094.md",
|
||||
"tests/golden/M16-GAP-00093/manifest.json",
|
||||
"docs/status/M16-GAP-00093.md"
|
||||
],
|
||||
"machineOnly": [
|
||||
"tests/golden/M15-03A/task-index.json",
|
||||
"tests/golden/M15-03A/task-catalog.jsonl"
|
||||
],
|
||||
"optionalByNeed": [
|
||||
"docs/WEB_BLENDER_MODELER_V1_SCOPE.md",
|
||||
"任务卡列出的精确协议/生产路径",
|
||||
"任务卡明确命名的长期计划小节"
|
||||
],
|
||||
"forbiddenByDefault": [
|
||||
"完整 CURRENT_EXECUTION_PLAN.md",
|
||||
"完整 PROJECT_STATUS_AND_NEXT_WORK.md",
|
||||
"全部 docs/status/*.md",
|
||||
"完整 parity/WBS 计划",
|
||||
"README 历史和 test-results/"
|
||||
]
|
||||
},
|
||||
"parent": {
|
||||
"manifest": {
|
||||
"schemaVersion": 1,
|
||||
"task": "M16-GAP-00093",
|
||||
"parentTask": "M16-GAP-00092",
|
||||
"status": "done",
|
||||
"nextTask": "M16-GAP-00094",
|
||||
"artifactCount": 15
|
||||
},
|
||||
"statusSummary": [
|
||||
"# M16-GAP-00093 Status",
|
||||
"status: done",
|
||||
"task: SKIN modifier LOCAL_EXACT slice",
|
||||
"updated: 2026-08-20 America/New_York",
|
||||
"scope: Mesh SKIN modifier stack exposure for `mesh:WebGapSkinMesh`.",
|
||||
"evidence:",
|
||||
"- Desktop fixture exposes `WebGapSkin` as SKIN type code 42; save/reopen is exact.",
|
||||
"- WASM/Main exposes SKIN type code 42 as `METADATA_ONLY`, including branch smoothing, skin flags, and symmetry axes; save/reopen is exact."
|
||||
]
|
||||
},
|
||||
"budgets": {
|
||||
"queueBytes": 4096,
|
||||
"taskBytes": 1719,
|
||||
"parentManifestBytes": 24576,
|
||||
"parentStatusBytes": 6144,
|
||||
"evidenceFiles": 12,
|
||||
"evidenceBytes": 8192,
|
||||
"contextTokens": 3500,
|
||||
"taskLines": 38,
|
||||
"taskTokens": 430
|
||||
},
|
||||
"size": {
|
||||
"documents": [
|
||||
{
|
||||
"path": "docs/EXECUTION_QUEUE.md",
|
||||
"bytes": 2168,
|
||||
"lines": 45,
|
||||
"tokens": 542
|
||||
},
|
||||
{
|
||||
"path": "docs/tasks/M16-GAP-00094.md",
|
||||
"bytes": 1719,
|
||||
"lines": 38,
|
||||
"tokens": 430
|
||||
},
|
||||
{
|
||||
"path": "tests/golden/M16-GAP-00093/manifest.json",
|
||||
"bytes": 2723,
|
||||
"lines": 29,
|
||||
"tokens": 681
|
||||
},
|
||||
{
|
||||
"path": "docs/status/M16-GAP-00093.md",
|
||||
"bytes": 695,
|
||||
"lines": 19,
|
||||
"tokens": 174
|
||||
}
|
||||
],
|
||||
"sourceTokens": 1827,
|
||||
"evidenceFiles": 1,
|
||||
"evidenceBytes": 1269,
|
||||
"evidenceTokens": 318,
|
||||
"totalTokens": 2145,
|
||||
"withinBudget": true
|
||||
}
|
||||
}
|
||||
@@ -1121,6 +1121,7 @@ const genericModifierTasks = {
|
||||
"M16-GAP-00091": { type: "SHRINKWRAP", stem: "WebGapShrinkwrap", nextTask: "M16-GAP-00092" },
|
||||
"M16-GAP-00092": { type: "SIMPLE_DEFORM", stem: "WebGapSimpleDeform", nextTask: "M16-GAP-00093" },
|
||||
"M16-GAP-00093": { type: "SKIN", stem: "WebGapSkin", nextTask: "M16-GAP-00094" },
|
||||
"M16-GAP-00094": { type: "SMOOTH", stem: "WebGapSmooth", nextTask: "M16-GAP-00095" },
|
||||
};
|
||||
if (genericModifierTasks[task]) {
|
||||
const config = genericModifierTasks[task];
|
||||
@@ -1149,6 +1150,12 @@ if (genericModifierTasks[task]) {
|
||||
if (config.type === "EDGE_SPLIT") {
|
||||
assert.ok(Math.abs(modifier.parameters.splitAngle - desktop.modifier.modifier.splitAngle) < 1e-5);
|
||||
}
|
||||
if (config.type === "SMOOTH") {
|
||||
assert.ok(Math.abs(modifier.parameters.factor - desktop.modifier.modifier.factor) < 1e-5);
|
||||
assert.equal(modifier.parameters.repeat, desktop.modifier.modifier.iterations);
|
||||
assert.equal(modifier.parameters.vertexGroup, desktop.modifier.modifier.vertexGroup);
|
||||
assert.equal(modifier.parameters.smoothFlags, desktop.modifier.modifier.smoothFlags);
|
||||
}
|
||||
const saved = output(engine, handle, engine._web_engine_save_blend, true); const reopened = engine._web_engine_create(); open(engine, reopened, saved); const reopenedSnapshot = snapshot(engine, reopened); const reopenedHolder = mesh ? reopenedSnapshot.meshes?.find((value) => value.id === mesh.id) : reopenedSnapshot.nodes?.find((value) => value.id === node.id); assert.deepEqual(reopenedHolder?.modifierStack, holder.modifierStack);
|
||||
const malformed = new Uint8Array([0x42,0x4c,0x45,0x4e,0x44,0x45,0x52]); const pointer = engine._malloc(malformed.byteLength); let result; try { engine.HEAPU8.set(malformed, pointer); result = engine._web_engine_open_blend(handle, pointer, malformed.byteLength); } finally { engine._free(pointer); } assert.notEqual(result, 0); assert.deepEqual(snapshot(engine, handle), before); engine._web_engine_destroy(handle); engine._web_engine_destroy(reopened);
|
||||
const report = { schemaVersion: 1, task, operation: `${config.type}_MODIFIER_LOCAL_EXACT`, fixture: { path: path.relative(root, fixture).replaceAll(path.sep, "/"), sha256: desktop.fixtureSha256 }, desktop: { status: "EXACT", report: path.relative(root, desktopPath).replaceAll(path.sep, "/"), saveReopen: desktop.saveReopen }, wasm: { status: "EXACT", objectId: node?.id, meshId: mesh?.id, modifier }, saveReopen: "EXACT", negative: { malformedBlend: "REJECTED_WITHOUT_MAIN_MUTATION" }, nextTask: config.nextTask };
|
||||
|
||||
@@ -46,6 +46,16 @@ def report(task, modifier_type, object_name):
|
||||
value["modifier"]["textureMapping"] = {"GLOBAL": 1, "LOCAL": 2, "OBJECT": 3, "UV": 4}.get(modifier.texture_coords, 1)
|
||||
if modifier_type == "EDGE_SPLIT":
|
||||
value["modifier"]["splitAngle"] = float(modifier.split_angle)
|
||||
if modifier_type == "SMOOTH":
|
||||
value["modifier"]["factor"] = float(modifier.factor)
|
||||
value["modifier"]["iterations"] = int(modifier.iterations)
|
||||
value["modifier"]["vertexGroup"] = modifier.vertex_group
|
||||
value["modifier"]["smoothFlags"] = (
|
||||
(1 if modifier.invert_vertex_group else 0)
|
||||
| (2 if modifier.use_x else 0)
|
||||
| (4 if modifier.use_y else 0)
|
||||
| (8 if modifier.use_z else 0)
|
||||
)
|
||||
return value
|
||||
|
||||
|
||||
|
||||
36
tools/web/generated/M16-GAP-00094.py
Normal file
36
tools/web/generated/M16-GAP-00094.py
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env python3
|
||||
import pathlib
|
||||
import sys
|
||||
import bpy
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
arguments = sys.argv[sys.argv.index("--") + 1:]
|
||||
if len(arguments) != 1:
|
||||
raise SystemExit("usage: blender -b --python M16-GAP-00094.py -- OUTPUT")
|
||||
bpy.ops.wm.read_factory_settings(use_empty=True)
|
||||
mesh = bpy.data.meshes.new("WebGapSmoothMesh")
|
||||
mesh.from_pydata(
|
||||
[(-1.0, -1.0, 0.0), (1.0, -1.0, 0.0), (1.0, 1.0, 0.0), (-1.0, 1.0, 0.0)],
|
||||
[],
|
||||
[(0, 1, 2, 3)],
|
||||
)
|
||||
obj = bpy.data.objects.new("WebGapSmoothObject", mesh)
|
||||
bpy.context.scene.collection.objects.link(obj)
|
||||
group = obj.vertex_groups.new(name="WebGapSmoothWeights")
|
||||
group.add([0, 1], 1.0, "REPLACE")
|
||||
modifier = obj.modifiers.new(name="WebGapSmooth", type="SMOOTH")
|
||||
modifier.factor = 0.375
|
||||
modifier.iterations = 3
|
||||
modifier.vertex_group = group.name
|
||||
modifier.invert_vertex_group = True
|
||||
modifier.use_x = True
|
||||
modifier.use_y = False
|
||||
modifier.use_z = True
|
||||
modifier.show_viewport = True
|
||||
modifier.show_render = False
|
||||
bpy.context.view_layer.objects.active = obj
|
||||
obj.select_set(True)
|
||||
bpy.ops.wm.save_as_mainfile(
|
||||
filepath=str(pathlib.Path(arguments[0]).resolve()), check_existing=False, compress=True
|
||||
)
|
||||
BIN
web/app/public/vendor/blender/web_engine.wasm
vendored
BIN
web/app/public/vendor/blender/web_engine.wasm
vendored
Binary file not shown.
BIN
web/app/src/vendor/blender/web_engine.wasm
vendored
BIN
web/app/src/vendor/blender/web_engine.wasm
vendored
Binary file not shown.
Reference in New Issue
Block a user