Files
workinf_Blender_Wasm/web/app/public/teach/lessons/ch03.json
mes123456 c47fa79102
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): viewport transform parity — offscreen backend, per-island pivots, ortho sizing
- Offscreen worker backend publishes the camera probe, so the G/R/S modal's
  pointer basis, transform gizmo and wireframe work on both renderers.
- Edit-mode INDIVIDUAL_ORIGINS pivots every connected island on its own centre,
  committed as one grouped transaction (T(P)·R·S·T(-P) in object space).
- Gizmo hits carry the pivot index; orthographic views size the axes from the
  visible world height instead of the 45° fov fallback.
- View-menu navigation no longer switches workspace when a viewport is already
  on screen (the engine workspace transaction dropped the editor out of Edit).
- Modal commits queue behind the shared command tail, so a trailing
  editEditorContext cannot consume the user's first Ctrl+Z.
- Floating sidebar rotation field confirmed in degrees; headed cases for the
  offscreen path, per-island pivots and the sidebar unit, plus receipts/docs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 07:48:17 +08:00

70 lines
3.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"schemaVersion": 1,
"id": "ch03",
"number": 3,
"part": "part-a",
"title": "文件与工程:新建、打开、最近项目、另存为与保存副本",
"level": "入门",
"workspace": "Layout",
"minutes": 7,
"summary": "把文件菜单走一遍:保存到浏览器存储、新建常规工程、丢弃未保存改动并回到干净场景。",
"objectives": ["把当前工程保存到 OPFS", "从文件菜单新建常规工程", "看懂未保存改动确认"],
"setup": { "workspace": "Layout" },
"steps": [
{
"id": "ch03-s1",
"title": "保存到浏览器 OPFS",
"text": "点击顶栏「保存项目」,状态栏从「未保存」变成「已保存」。工程写进浏览器 OPFS,不会下载文件。",
"target": { "role": "button", "name": "保存项目" },
"checks": [
{ "kind": "text", "target": { "testid": "dirty-status" }, "equals": "已保存", "label": "保存状态为「已保存」" }
],
"demo": [{ "kind": "click", "target": { "role": "button", "name": "保存项目" } }]
},
{
"id": "ch03-s2",
"title": "打开「文件」菜单",
"text": "点击菜单栏的「文件」,这里集中了新建、打开、最近打开、保存与导出。",
"target": { "role": "button", "name": "文件" },
"checks": [
{ "kind": "exists", "target": { "role": "menuitem", "name": "新建" }, "label": "菜单里出现「新建」" }
],
"demo": [{ "kind": "click", "target": { "role": "button", "name": "文件" } }]
},
{
"id": "ch03-s3",
"title": "选择「新建 → 常规」",
"text": "在「新建」子菜单里选择「常规」,会弹出新建工程对话框。",
"target": { "role": "menuitem", "name": "常规" },
"checks": [
{ "kind": "exists", "target": { "role": "dialog", "name": "新建工程" }, "label": "新建工程对话框已打开" }
],
"demo": [
{ "kind": "click", "target": { "role": "button", "name": "文件" } },
{ "kind": "click", "target": { "role": "menuitem", "name": "新建" } },
{ "kind": "click", "target": { "role": "menuitem", "name": "常规" } }
]
},
{
"id": "ch03-s4",
"title": "确认新建",
"text": "点击「新建常规工程」。如果当前工程有未保存改动,会先询问是否保存。",
"target": { "role": "button", "name": "新建常规工程" },
"checks": [
{ "kind": "exists", "target": { "role": "button", "name": "不保存,继续" }, "label": "出现未保存改动确认" }
],
"demo": [{ "kind": "click", "target": { "role": "button", "name": "新建常规工程" } }]
},
{
"id": "ch03-s5",
"title": "丢弃改动并打开新工程",
"text": "选择「不保存,继续」,场景被替换成新的常规工程,状态栏重新出现对象统计。",
"target": { "role": "button", "name": "不保存,继续" },
"checks": [
{ "kind": "text", "target": { "testid": "scene-stats" }, "matches": "Objects \\d+", "label": "新工程已载入场景" }
],
"demo": [{ "kind": "click", "target": { "role": "button", "name": "不保存,继续" } }]
}
]
}