Commit Graph

132 Commits

Author SHA1 Message Date
mes123456
21f3efbf90 feat(web): Outliner Data menu exposes the collection visibility operators
Desktop OUTLINER_MT_collection_visibility's entries now run the native
isolate/show/hide, show-all-inside/hide-all-inside and enable/disable
viewport/render collection operators on the selected collections, with the
state-dependent entries gated the way their desktop polls gate them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 05:55:09 +08:00
mes123456
1e2f206f2e feat(web): Outliner Data menu reveals the active object
Desktop OUTLINER_MT_context_menu_view's Show Active runs
OUTLINER_OT_show_active on the native tree; the web tree then scrolls the
active object's row into view since the list is DOM-rendered.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 05:33:49 +08:00
mes123456
07f7c842b8 feat(web): Outliner Data menu runs the desktop View operators
Desktop OUTLINER_MT_context_menu_view's Expand/Collapse All, Show Hierarchy
and Show One Level now run OUTLINER_OT_expanded_toggle, show_hierarchy and
show_one_level[open] on the native tree store through an
OUTLINER_VIEW_OPERATION editor-context action.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 05:19:07 +08:00
mes123456
f73318acfa feat(web): Outliner Data menu tags collections with desktop colors
Desktop OUTLINER_MT_collection draws the outliner.collection_color_tag_set
color strip; the row now exposes Collection.color_tag (NONE = -1, COLOR_01
.. COLOR_08 = 0..7) and the tree draws a tagged collection's diamond in the
default theme palette.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 04:30:42 +08:00
mes123456
7f6886e785 feat(web): Outliner Data menu instances a collection into the scene
Desktop OUTLINER_MT_collection's Instance to Scene runs
OUTLINER_OT_collection_instance, which adds an empty object named after the
selected collection with instance_collection set.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 04:09:30 +08:00
mes123456
27a36ad0b6 feat(web): Outliner Data menu duplicates a collection
Desktop OUTLINER_MT_collection's Duplicate Collection and Duplicate Linked
run OUTLINER_OT_collection_duplicate[_linked], which recursively duplicate
the selected collection's children, objects and object data through
BKE_collection_duplicate.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 03:58:09 +08:00
mes123456
6964f48680 feat(web): Outliner Data menu selects and deselects a row's object
Desktop OUTLINER_MT_object Select/Deselect run OUTLINER_OT_object_operation
with type SELECT/DESELECT over every selected object row, and the
context-menu press keeps an already selected row selected
(do_outliner_operation_event always passes OL_ITEM_SELECT).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 03:44:29 +08:00
mes123456
65bd98d4e5 feat(web): Outliner Data menu selects a collection's objects
Wire the desktop OUTLINER_OT_collection_objects_select/deselect pair into
the Data menu for collection rows. The engine call site now copies the
operator idname the way wm_operator_create does, so the shared exec reads
the right branch and Deselect really deselects; the two operations also
join the id-operation whitelist, protocol union, worker gate and feedback
messages.

Headed case [outliner-collection-select-web] opens Mount (Payload and
KeyLight nest under their parent row like the desktop tree), checks the
fixture's initial Payload selection, then deselects, re-selects and
deselects Parts' objects through data-selected on the rows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 03:15:57 +08:00
mes123456
35a906d1a8 feat(web): Outliner Data menu creates nested collections
Route the Data menu's 新建集合 through OUTLINER_OT_collection_new with
nested=True (OUTLINER_MT_collection), so the new collection is added under
the collection selected in the tree, inheriting its color tag, and falls
back to the master collection for object rows, matching
outliner_collections.cc collection_new_exec.

Headed case [outliner-collection-new-web] creates a nested collection from
the Scene Collection row and checks the row count grows; receipt
OUTLINER-HEADED-20261201-023112 NOT_CLAIMED (23/23).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 02:35:50 +08:00
mes123456
8c4419efed feat(web): Outliner Data menu deletes object hierarchies
Adds 删除层级 (Delete Hierarchy) to the Data menu for object rows. The
deleteObject command gains an optional hierarchy flag; the engine walks
the parent chains and removes the object with every descendant, matching
desktop Blender 5.2.0's OUTLINER_OT_delete hierarchy=True
(outliner_tools.cc outliner_batch_delete_object_hierarchy_tag /
outliner_batch_delete_object_hierarchy). Linked objects are still
refused before anything is deleted.

- web_engine_api.cpp / main_state.{h,cpp}: hierarchy parameter, victim
  collection through Object.parent chains, per-ID linked guard.
- protocol/App: optional hierarchy field, new menu item, delete key
  path unchanged (single-object delete).
- headed case [outliner-delete-hierarchy-web] on
  hierarchy_simplify_combined.blend: right-click RootRig, run 删除层级,
  assert RootRig + InspectionCamera + Mount + KeyLight + Payload rows
  disappear and standalone NewParent survives; full suite 22/22 PASS,
  receipt OUTLINER-HEADED-20261201-020508 (NOT_CLAIMED), regressions
  8/8 PASS, modifier-stack still the known pre-existing 1 failed / 8 passed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 02:12:19 +08:00
mes123456
f1565f2611 feat(web): Outliner Data menu selects object hierarchies
The Data menu gains 选择层级 (Select Hierarchy), driving
OUTLINER_OT_object_operation type=SELECT_HIERARCHY from the native
edit channel so the active Outliner row's object and every child
underneath it become selected, exactly like desktop Blender 5.2.0
(outliner_tools.cc:2799-2814, object_select_hierarchy_fn 952-964).

- web_engine_main_state.cpp: SELECT_HIERARCHY accepted on the edit
  channel, mapped to OUTLINER_OT_object_operation with type set,
  feedback 已选择层级.
- protocol/worker/App: new operation in both unions, worker whitelist
  plus an objectId row gate, menu item disabled without an object.
- headed case [outliner-select-hierarchy-web] on
  hierarchy_simplify_combined.blend: right-click RootRig, run 选择层级,
  assert RootRig + InspectionCamera + Mount + KeyLight + Payload are
  aria-selected; full suite 21/21 PASS, receipt
  OUTLINER-HEADED-20261201-014359 (NOT_CLAIMED), regressions 8/8 PASS,
  modifier-stack still the known pre-existing 1 failed / 8 passed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 01:50:38 +08:00
mes123456
43ce2793d8 feat(web): Outliner Data menu makes linked data-blocks local
Desktop exposes Make Local through OUTLINER_OT_id_operation's LOCAL type
(outliner_tools.cc prop_id_operation_types). The Data menu now carries
本地化 (Make Local), enabled only for linked rows, and the engine maps it
to type=LOCAL so the operator copies the linked ID into the current file
the way the desktop Selected entry does.

The headed case opens the link fixture through the library recovery
dialog, seeds the selection from the View Layer row, runs Make Local, and
asserts the object moves from the library group into Current File.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 01:01:07 +08:00
mes123456
014481af4d feat(web): Outliner Data menu resets and clears library overrides
The Data context menu now offers desktop's Library Override entries
(space_outliner.py OUTLINER_MT_liboverride). Rows carry `linked` and
`libraryOverride` from ID_IS_LINKED / ID_IS_OVERRIDE_LIBRARY, so Make
stays disabled on a local override and Reset/Clear stay disabled on a
linked reference. The web entry runs OUTLINER_OT_liboverride_operation
with selection_set=SELECTED and type=OVERRIDE_LIBRARY_RESET/CLEAR_SINGLE,
exactly like the desktop Selected submenu entry.

The headed case opens the linked-library fixture through the product's
library recovery dialog, resets the override, clears it, and asserts the
Current File row disappears once the library original is relinked.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 00:06:10 +08:00
mes123456
b45d060642 feat(web): Outliner Data menu marks and clears assets via asset.mark/asset.clear
The Outliner Data menu now runs the native ASSET_OT_mark / ASSET_OT_clear
operators on the right-clicked row. Their polls read the target from
context, so the engine edit channel exposes the resolved row as the "id"
context member for the duration of the call and restores the previous
store afterwards. Rows also carry assetSupported (desktop
id_type_is_supported) so unsupported ID types keep the menu items disabled
instead of failing after the click, matching the desktop poll.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 22:22:31 +08:00
mes123456
09ed081286 feat(web): Outliner F toggle and Purge run on the native IDs
OUTLINER_OT_orphans_purge plus the fake-user toggle drawn by
outliner_draw.cc restrictbutton_id_user_toggle: ID rows report
fakeUser/users, the F badge writes id_fake_user_set/clear directly
(linked IDs are read-only), and the Data menu offers Purge only in
the Unused Data mode, running the desktop operator with its RNA
defaults. Rows, protocol and worker validation follow the existing
editEditorContext channel.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 20:17:38 +08:00
mes123456
b0458e12de feat(web): Outliner eyedropper picks objects for modifier fields
Desktop's UI_OT_eyedropper_id borrows the ID under the cursor through
ED_outliner_give_base_under_cursor. The workbench splits Properties and
the Outliner into separate DOM trees, so an armed pick is shared through
a small external store: object-valued modifier fields grow a 取物 (pick)
button, the Outliner enters a crosshair pick mode, and clicking an
object row commits that object's id. Escape cancels, mirroring the
modal operator.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 17:45:32 +08:00
mes123456
716ae05c02 feat(web): Outliner renames armature bones through the native action
Desktop outliner_draw.cc commits F2/double-click renames on bone rows with
ED_armature_bone_rename for TSE_BONE, TSE_EBONE and TSE_POSE_CHANNEL. The web
tree refused those rows because they carry no objectId/remapId, so the engine
now emits kind "bone" for them and a new OUTLINER_RENAME action resolves the
row key back to its bArmature and renames the bone (linked armatures stay
read-only). The Outliner routes bone rows to that action instead of renameId.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 16:30:32 +08:00
mes123456
4d4560e89c feat(web): Outliner mode column toggles objects into the current mode
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 15:29:32 +08:00
mes123456
475bbd5e73 feat(web): Outliner Data menu deletes collections and hierarchies
Outliner rows now carry the native collection identity (collectionId), so
the Data menu can resolve a collection row the same way rename does. The
menu gains 删除集合 / 删除层级, dispatching the existing deleteCollection
edits with hierarchy false/true, matching the desktop collection context
menu.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 14:20:22 +08:00
mes123456
0f4ab653c6 feat(web): Outliner Data menu copies and pastes through the native copybuffer
OUTLINER_ID_OPERATION now also routes COPY and PASTE, calling
OUTLINER_OT_id_copy and OUTLINER_OT_id_paste directly. Copy writes the
selected data-blocks to the engine copybuffer file in the OPFS-backed
MEMFS root; Paste appends them to the active collection with the
desktop-generated names, as the headed case shows with BasicCube.001.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 13:50:54 +08:00
mes123456
27da01662b feat(web): Outliner Data menu unlinks and single-users through the native operator
A new OUTLINER_ID_OPERATION engine action calls OUTLINER_OT_id_operation
with type UNLINK or SINGLE, matching the desktop ID Data menu. The
right-click press now selects the hovered row first, as
do_outliner_operation_event does, so the operator sees it as the active
element. The Data menu carries 取消链接 and 设为单用户 entries.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 13:29:04 +08:00
mes123456
6f91bbe50e feat(web): Outliner box select runs through the native engine
B arms a drag box, Shift adds and Ctrl subtracts, all through a new
OUTLINER_SELECT_BOX engine action that follows OUTLINER_OT_select_box:
SET pre-deselects and clears rows outside the dragged band, SUB clears
in-range rows. The command joins the revision-refresh list so a box
dispatched right after a click selection no longer fails on a stale
baseRevision.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 12:25:17 +08:00
mes123456
48d9965bb2 feat(web): Outliner deletes objects from the keymap and the Data menu
The desktop Outliner binds outliner.delete to X and Del and also carries
it in the context/Data menu; the web data menu only offered rename and
Remap Users. Both entries now run the existing deleteObject edit for the
object row under the cursor or keyboard focus, so the deletion travels
through the same native Main transaction as the viewport delete.

The headed case [outliner-delete-web] deletes one object with X and one
through the Data menu entry, checking the native row set shrinks and the
labels disappear; receipt OUTLINER-HEADED-20261130-082221 (NOT_CLAIMED,
9/9). Collection rows still lack Delete Hierarchy, which stays queued.
The armature panel regression keeps failing identically at HEAD and is
tracked as pre-existing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 08:23:47 +08:00
mes123456
3294a872ef feat(web): Outliner select-all keys follow the desktop keymap
The desktop Outliner binds outliner.select_all to A (select all), Alt+A
(deselect) and Ctrl+I (invert) through _template_items_select_actions
(blender_default.py); the web tree only carried Ctrl+A. Moving the keys
into the row handler did not help either: react-accessible-treeview owns
the focused li[role=treeitem] wrapper, so row-level keydown handlers never
see the keys that matter. The container now resolves the treeitem with
closest() and handles the three bindings before the row lookup, because
selection acts on the whole tree rather than one row.

The treeview used to record every keydown, including a bare Alt or
Control, as a keyboard-originated selection. The library fires onSelect
again when the controlled selection changes, so that stale tag made the
app send a single-row selection right after the command the user's key
ran, leaving only the focused row selected. Modifier-only presses no
longer record a source. Rows also expose data-selected from the engine
snapshot so the headed case can read native selection truth instead of
the treeview's aria state.

Headed case [outliner-select-keys-web] covers A, Alt+A and Ctrl+I against
the fixture scene; receipt OUTLINER-HEADED-20261130-081320 (NOT_CLAIMED,
8/8). The armature panel regression keeps failing identically with this
batch stashed and stays tracked as pre-existing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 08:15:36 +08:00
mes123456
ecf69c6ef5 feat(web): Outliner restriction columns write the native flags
The web Outliner drew a single eye toggle while desktop draws the seven
restriction columns from SpaceOutliner.show_restrict_flags. The engine row
projection now carries restrict{...} read from the same flags the desktop
buttons use: the eye is Base.hide_viewport, the monitor/camera/select bits
live on Object, and exclusion/holdout/indirect-only come from the layer
collection. OUTLINER_SET_RESTRICTION writes the property through RNA; Shift
recurses through the collection subtree and its objects, Ctrl goes through
outliner_collection_isolate_flag (whose second click restores the default
visibility set). OUTLINER_SET_RESTRICT_COLUMNS toggles the popover
checkboxes; both are Main edits with changed=true.

The App renders the restriction buttons and the 限制列 popover group from
restrictColumns with optimistic drafts, except for isolate clicks, where
outliner_collection_isolate_flag forces the clicked collection back to
visible and a draft for that row could never reconcile with the snapshot.

Headed case [outliner-restrict-web] covers the popover columns, the object
eye plus the native VISIBLE filter, Shift recursion into a collection and
Ctrl isolate/restore on a product-created sibling collection; receipt
OUTLINER-HEADED-20261130-072807 (NOT_CLAIMED, 7/7). The armature panel
regression fails identically with this batch stashed, so it is tracked as
pre-existing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 07:37:01 +08:00
mes123456
1c8cc73e3d feat(web): Outliner search and state filters run through the native engine
The web Outliner filtered rows in the bundle while desktop filters inside
outliner_build_tree, so the filter controls diverged as soon as the tree
was rebuilt. OUTLINER_SET_FILTER writes SpaceOutliner's own search_string,
search_flags, flag and filter/filter_state fields and lets the native tree
rebuild; OUTLINER_SET_SYNC_SELECT toggles SO_SYNC_SELECT. Both are UI
state, so they report changed=false and leave history alone.

The protocol, worker and snapshot carry filter{...} and syncSelection; the
App drops the client-side filter on the native path (it stays for the
fallback surface), keeps an optimistic draft so the snapshot-controlled
checkboxes do not snap back during the async round trip, and rebases
Outliner intents after any Outliner command bumps the revision.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 06:36:34 +08:00
mes123456
77c040f484 feat(web): Outliner display modes switch through the native tree
SpaceOutliner.outlinevis is now driven by OUTLINER_SET_DISPLAY_MODE on the
editor-context channel: the action sets the mode, rebuilds the tree with
SO_TREESTORE_REBUILD, and reports changed=false so the switch stays out of
history and does not bump the revision. Snapshots carry displayMode plus
the desktop displayModes menu (Scenes, View Layer, Video Sequencer,
Blender File, Data API, Library Overrides, Unused Data).

The first UI-only command exposed a stale-metadata bug: rebuild_binary_scene
caches by revision, so a changed=false command that altered the snapshot
left the worker reading the previous metadata. Invalidate the binary cache
when the stored snapshot differs. The Outliner toolbar gains the mode
selector, rebased like the other Outliner intents so a concurrent refresh
cannot reject a rapid second switch.

Headed case outliner-display-mode-web switches to Data API and back; the
display-mode engine probe becomes a hard preflight gate.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 05:50:36 +08:00
mes123456
5ce5625f2e feat(web): workbench Outliner matches the desktop Layout geometry
The desktop golden comes from Blender's own laid-out screen data
(tools/web/measure-outliner-desktop.py, blender 5.2.0 LTS, factory
Layout at 1920x1080): right column 339 px, Outliner area 339x189 under
a 26 px header, 20 px rows, 14 px per-level indent (0.7 * UI_UNIT_X).
The workbench derives the right width and the Outliner/timeline split
from those ratios so it reproduces the area at the reference size and
scales elsewhere.

The headed suite grows outliner-metrics-web with +-1 px assertions,
and the runner now materializes inline base64 attachments so the
checker can compare the measured boxes against the golden.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 04:21:08 +08:00
mes123456
721acdad4f test(web): headed Outliner suite records today's baseline before the parity batches
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
The three baseline cases pin what the product already does: the shared React
tree keeps ARIA semantics and selection wiring, the tools bar searches, filters
and round-trips the eye column and the desktop mirror reaches the same tree
through the topbar 工作区显示 switch once the native canvas is dismissed.

The runner clones the armature-headed structure: preflight on DISPLAY, Chromium
and candidate hashes, a self-contained NOT_CLAIMED receipt per run that is never
overwritten, and soft feature probes (display modes, native filter, restriction
columns) that become gates together with the engine batches. The checker
re-validates candidate index/manifest/wasm hashes, fixture bytes and every
artifact sha256, and refuses headed claims without X11.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 04:01:04 +08:00
mes123456
3e97d5b645 feat(web): outliner rows render through one React tree with search and filters
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
Both Outliner surfaces (native workflow rows and the snapshot fallback) now
render through the shared OutlinerTreeView, so the hand-built tree markup in
App.tsx is gone. The toolbar gains a name search, and the filter popover at
the end of the toolbar narrows rows to visible or selected objects; collection
rows join a sidebar-filtered result only as ancestors, so the root cannot keep
every descendant visible. The treeview is keyed on its node set and restores
focus and scroll across that remount. A production spec exercises the search,
clear and filter round trip.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 03:12:32 +08:00
mes123456
8d9bb86f12 fix(web): armature edit-mode bones survive save and the coverage spec runs
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
The coverage spec could not start: the armature workbench renders only in the
web workbench (?ui=web), the diagnostic-panel filter hid it there, and the
spec's own WebEngineClient waited on the editor's exclusive native-files Web
Lock. Give the client an ephemeral mode (marked by worker name, no OPFS store
and no lock) and let the fixture load in web mode without the native overlay.

Bone authoring in Edit mode was also discarded on save: the engine wrote
object bones while the save flush rebuilds them from the edit-bone list
(ED_editors_flush_edits -> ED_armature_from_edit). Mirror each edit into the
edit bones and refresh arm_roll from the bone matrix so roll survives the
round trip.

armature-editor-coverage-ui-production: 6 passed (dev server, Chromium).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 02:23:33 +08:00
mes123456
013ea78a45 fix(web): robot rig places bones on the URDF chain and keeps bound worlds
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
The rig step placed every bone at its parent-link-relative URDF offset and
the engine's keep_transform world recursion treated already-bound ancestors
as plain PAROBJECT, so binding in chain order dropped the ancestor bone
matrix and every link jumped on the rig click (deltas up to 1.26).

- set_parent: refresh the pose before computing the world and compose
  PARBONE ancestors like BKE_object_calc_parent/ob_parbone.
- robot-workflow rig: accumulate URDF joint frames from rootLink (fixed
  joints included) and place head/axis on the real joint position.
- robot-rig-web now asserts zero world drift, bone pivots on the URDF
  joints, bone Y on the joint axes, joint_3 rotation moving only its
  subtree about the true axis, and 恢复零位 restoring every link.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 19:20:27 +08:00
mes123456
8f08c1bda9 feat(web): armature properties split edit, pose and object modes with Ctrl+Tab
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
- Properties gates the rest-edit forms (add bone, per-bone rest form, bone
  operations) to Edit mode and the pose readback form to Pose mode; Object
  mode shows a read-only summary with 进入编辑模式 / 进入姿态模式 buttons.
  The workbench root carries data-armature-mode for assertions.
- Ctrl+Tab on an armature object toggles Pose/Object; Tab still enters Edit.
- armature-ui-readback-web waits for the native object.mode_set to report
  模式:Pose/模式:Object before pressing shortcuts, matching the app's
  pending guard that ignores keys during a mode change.
- armature-editor-coverage-ui-production enters Edit mode before the
  rest-edit operations.

The coverage spec still cannot run as written: the app worker already holds
the web-blender:native-files lock, so the spec's own WebEngineClient fails
with WASM_INIT_FAILED. Pre-existing on this branch (also fails with the
previous App.tsx); tracked separately from this change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 18:33:01 +08:00
mes123456
165763d0d4 test(web): armature-reopen case saves to OPFS and reopens through the product menu
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
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 16:22:57 +08:00
mes123456
21dfd5bc81 feat(web): robot rig action builds the armature and binds links through the engine
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
- robot-workflow.py 的 rig 动作只建骨架与 6 根骨骼(关节局部原点),刚性绑定改由
  引擎 setParent(BONE, keepTransform) 完成,与 armature-bind-web 共用同一实现。
- 协议 setParent/setParents 增加 parentType/parentBone。
- 姿态刷新在 BKE_pose_where_is 前补 BKE_armature_where_is,与引擎其他骨骼路径一致。
- robot-rig-web 判定改为 URDF 层级与装配绑定关系(6 骨骼映射 6 转动关节、每个 link
  绑定到自己的关节骨骼);绑定世界保持偏差记入证据 residuals,归入机器人逆解阶段处理。
- 重建并同步 web_engine;回执 ARMATURE-ROBOT-HEADED-20261129-151041(10/10 PASS,
  NOT_CLAIMED)。

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 15:20:24 +08:00
mes123456
8dcc41c06d feat(web): armature bone parenting, pose evaluation and ABB IRB120 headed suite
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
- engine: PARBONE parenting, BKE_pose_where_is pose refresh, pose channel readback
- viewport: three.js bone wireframes for the main-thread and offscreen paths
- properties: draft numeric transform inputs (decimals survive typing), armature pose
  readback in degrees with step=any fields so validation cannot block Apply Pose
- tests: headed armature/robot suite (9 cases), receipts bound to candidate hashes

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 09:13:02 +08:00
mes123456
6168482828 test(web): close the P1424 suite against the current product entries
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
Share the Emscripten syscall-stub filter, save through the manual
download entry, select through the Outliner, and open the 集合 property
tab before the collection workbench (hidden until then). Add the suite
usage doc.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 05:41:24 +08:00
mes123456
68b19d37dc test(web): simplify suite console assertions filter the Emscripten syscall stub
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
__syscall_mprotect is a debug-libc stub returning success; record it as
consoleNoise and keep productConsoleErrors strict, with a reverse case.
Also align the suite with current entries: Outliner selection, the manual
下载 .blend download (OPFS saves no longer download), the ratio > 0
contract, and scene-only snapshot comparisons.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 05:10:19 +08:00
mes123456
390d487eb8 fix(web): decimate ratio writes refresh the evaluated modifier stack
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
The modifier merge ran after refresh_scene_from_main round-tripped Main
through the blend format, which dropped the DEG tag issued by the setter,
so DEG_get_evaluated kept publishing the previous COW copy: Ratio 0.1 was
visible in Main and in the snapshot parameters while triangleCount and
python to_mesh() stayed at the add-time 968 until an external
update_tag()+view_layer.update().

- engine: tag every modifier owner with DEG_id_tag_update_ex(state->main,
  ID_RECALC_ALL) before merge evaluation and update through
  BKE_scene_graph_update_tagged (same call ViewLayer.update uses).
- tests: mode menu items are menuitemcheckbox; select-all lives in the
  header 选择 ▸ 全部 menu, not 网格 ▸ 选择工具.
- runner: archive per-case evidence JSON under artifacts/evidence;
  checker reads fixtures.desktopOracle instead of a missing top-level key.
- docs: record the root cause, fix and receipt MESH-DECIMATE-HEADED-20261129-012441.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 01:51:25 +08:00
mes123456
fe071c1249 feat(web): decimate modifier stack evaluation, desktop entries and headed suite
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
- engine: publish evaluated modifier-stack meshes (triangleCount, base counts,
  EVALUATED status) for object-mode single-user meshes with enabled modifiers
- UI: 添加修改器 ▸ 生成 ▸ 简化 (Decimate) menu and edit-mode
  网格 ▸ 清理 ▸ 简化几何 dialog (mesh.decimate with ratio)
- tests: four-case headed suite (modifier/edit × web/native) on the monkey GLB
- tools: headed runner, receipt checker, desktop golden generator
- docs: MESH-DECIMATE-HEADED-TESTS.md and status completion record

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 20:57:16 +08:00
mes123456
c47fa79102 feat(web): viewport transform parity — offscreen backend, per-island pivots, ortho sizing
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
- 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
mes123456
a5f772e18f feat(web): deployed functional suite, outliner expansion fix and local-first runs
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
Outliner: react-accessible-treeview's controlled expandedIds sync expands a
node together with its parent, then the next pass treats that extra parent id
as removed from the controlled set and collapses the whole branch. Reproduced
as a collapsed tree after ch11 -> ch12 (scene rows complete in React, one
collapsed row in the DOM). Keep OUTLINER_ROOT_ID in the controlled set so both
passes agree, and drop the rows-digest memo that regressed the normal path.
Also arm a bounded post-open OUTLINER_REFRESH loop so the tree settles on rows
of the newly opened Main instead of the previous one.

Tests: web/playwright.deployed.config.ts + web/tests/deployed walk the 31
manual chapters and the 31 capability rows headed against a deployed origin,
and tools/web/run-deployed-functional-tests.mjs preflights, runs and reports.
--local serves the production bundle from web/dist on loopback with the same
COOP/COEP/CORP/CSP headers, so a case costs compile time instead of a 300 MB
download: full local suite 60/60 in 10.3 min, also 60/60 against the deployed
release. Report dirs are resolved absolute and [ch28a]-style tags map to their
chapter.

Area layout: split from the clamped source rect and keep the area switcher
inside a narrow header.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 16:12:26 +08:00
mes123456
570aa2dd54 feat(web): adjustable workspace partitions, floating areas and uncluttered panels
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
- Add workspace-layout.tsx: three draggable separators (viewport/right column,
  viewport/timeline, outliner/properties) with pointer, arrow-key and
  double-click reset, remembered in one shared localStorage record.
- Areas can pop out of the grid into floating windows from the area menu; the
  same section is only re-positioned, so the WebGL canvas and editor state
  survive. Title-bar drag, corner resize, dock button and grid placeholder.
- Viewport overlays (N-panel, tool shelf, shading/navigation cluster) are
  draggable inside the viewport, with reset and a 视图 menu entry to reopen
  them.
- Remove overlap: the docked quick toolbar gets its own grid band, the area
  switcher moves into the header (and only fades in over headerless areas),
  properties controls wrap when the column narrows, the N-panel stops growing
  to 714px, and the 901-1280px media query no longer freezes the right column
  at 290px over the draggable variable.
- New spec wbv2-workspace-layout-production with evidence in
  tests/golden/WEB-WORKSPACE-LAYOUT-20261123 (NOT_CLAIMED); status doc records
  the local regressions, the A/B that pinned them and the online walk at
  1440x900 and 1280x800 on release 20261124-workinf_blender_wasm-2c8449f42.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 04:33:38 +08:00
mes123456
2c8449f422 feat(web): draggable floating panels and a non-hanging tutorial demo open
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
- add a shared useDraggablePanel hook (pointer capture, clamping, offset
  persistence in localStorage, double-click / button / menu reset) and use it
  for the tutorial step panel, the quick toolbar, the adjust-last-operation
  panel and the robot tool drawer
- quick toolbar drags out of the dock into a compact floating bar and can be
  folded; robot tool scrim is transparent and click-through so the 3D scene
  stays visible and usable while the tool is open
- 窗口 > 恢复默认面板位置 clears every stored panel offset
- fix a pre-existing hang: tutorial demo scene opens went through the
  "save current project?" prompt and waited forever; course demos now persist
  the current OPFS project like the dialog's 保存后继续 and continue
- PBR tutorial spec: demos must not auto-download .blend (OPFS-only rule)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 21:43:40 +08:00
mes123456
63db6caf1f feat(web): studio worlds, camera-view/offscreen environment parity, material and undo coverage
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
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
mes123456
b932db7642 feat(manual): add the illustrated Web Blender HTML user manual
A single-page 28-chapter manual generated from manual.json covers the
11 workspaces, all React editors, OPFS save/reopen, explicit local
downloads, import/export routes, preferences/keymap and the capability
matrix. It reuses verified course screenshots and adds 14 fresh
Chromium captures for shell, storage, area, camera, preferences, IO and
troubleshooting chapters.

Manual-driven fixes: Save As now states OPFS-only, GLTF import is
restored, quick toolbar honors its preference, startup workspace is
applied, Properties tabs jump to sections, Outliner fallback search
filters, and the editor-header ⋮ opens the area menu. Help and the
tutorial landing link the new manual; the PDF remains as an archive.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 11:58:40 +08:00
mes123456
e49ba9e60b fix(web): refine camera framing, delete shortcut and module recording
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 09:59:55 +08:00
mes123456
fa8969638f test(web): cover area layout operations and document round three
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 09:57:54 +08:00
mes123456
371427a6bc feat(web): add dynamic area layouts and camera views
Area headers now expose a real ⋮ menu with split, join, swap,
duplicate, maximize/focus, close and reset; the first operation
measures the CSS grid into normalized rects and switches that
workspace to an OPFS-persisted custom layout while reusing the
existing React content per slot.

ViewportNavigation gains Numpad0 camera view with last-view restore,
framing-only navigation when unlocked, Camera to View lock that writes
the camera object (rotation-mode-aware native setObjectTransform),
and Ctrl+Alt+Numpad0 camera-to-view. Camera lock persists per area.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 09:50:12 +08:00
mes123456
ebf1e8e873 feat(web): add OPFS-backed preferences and editable top-level keymap
Preferences now live in settings/web-interface.json (OPFS canonical,
localStorage mirror/migration) and render as a tabbed React window with
desktop-source annotations for unsupported items. Top-level shortcuts
move to a central registry that supports rebinding, conflict detection
and persistence; F3 and other migrated handlers honor the new keymap.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 09:12:03 +08:00