Commit Graph

234 Commits

Author SHA1 Message Date
mes123456
7bc7076c96 feat(web): declare the engine command revision contract
Add an exhaustive protocol-level revision contract for all 174 engine edit
commands, with the policy, revision field, enforcement point and error code
per command. It makes the three inline Worker semantics (required, optional,
folded) explicit, and discloses the four commands that carry a revision field
without rejecting a stale value.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 13:31:58 +08:00
mes123456
801145ae29 feat(web): Outliner keyboard map runs the desktop navigation, hide and keyframe operators
- Shift+Left/Right follow outliner.select_walk direction semantics: the
  keyboard passes the open state explicitly (outliner_walk_left/right)
  instead of reusing the mouse-chevron state guess.
- PageUp/PageDown run OUTLINER_OT_scroll_page; H/Alt+H run
  OUTLINER_OT_hide/unhide_all through a new OUTLINER_RESTRICT_OPERATION.
- K/I/Alt+I drive the native keying-set and keyframe operators; the case
  walks the desktop Data API route (select an RNA row, K builds the set,
  the inserted action appears under Actions) instead of relying on the
  auto-keying fallback that Alt+I cannot delete through.
- Cases [outliner-keyboard-parity-web] and [outliner-keyframe-keys-web].

Headed suite 48/48, validator PASS, treeview candidate 2/2, armature
dev-server 5/6 (pre-existing failure, unchanged).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 09:38:14 +08:00
mes123456
dcfcd313d2 feat(web): Outliner rows draw the desktop library and override markers
- Engine rows carry libraryIcon mirroring ui::icon_from_library (DIRECT,
  INDIRECT, PACKAGE, PACKAGE_INDIRECT, BROKEN, OVERRIDE,
  OVERRIDE_NONEDITABLE, ASSET), limited to the element types desktop draws
  markers for (TSE_ID_BASE rows in Unused Data carry no ID pointer).
- The protocol decodes libraryIcon and maps empty markers to null; rows render
  the badge after the name with an accessible label.
- New headed case [outliner-linked-icons-web]; full headed suite 46/46,
  validator PASS.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 08:04:28 +08:00
mes123456
6ec61b4841 feat(web): Outliner object and collection rows open the desktop menus
- Rebuild the row menus from shared builders following space_outliner.py:
  OUTLINER_MT_object (Copy/Paste | Delete | Select* | Unlink/New Collection |
  ID Data | common groups) and OUTLINER_MT_collection (New/Duplicate/Copy/
  Paste | Delete | Select Objects | Instance/Unlink | Visibility | View Layer
  | Color Tag | ID Data | common groups).
- The ID Data, visibility, view layer, color tag, asset, library override and
  view submenus are shared by the row-type menus and the empty-area menu; the
  asset entries are inlined like draw_common_operators' menu_contents, and the
  library override operations now nest under their desktop submenu.
- Top-level Copy/Paste dispatch OUTLINER_OT_id_copy/id_paste; the ID Data
  submenu keeps its enum entries.
- New headed case [outliner-menu-structure-web]; separator and submenu
  expectations updated. Full headed suite 45/45, validator PASS.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 07:00:49 +08:00
mes123456
886a3787d7 feat(web): Outliner row-type menus cover libraries, scenes and empty space
- Engine rows carry library/scene kinds and route ID_LI rows to
  OUTLINER_OT_lib_operation (DELETE/RELOAD/RELOCATE) and Scene rows to
  OUTLINER_OT_scene_operation DELETE, reusing the staged relocate channel.
- The Data menu dispatches per row type; the empty-area context menu offers
  New Collection/Paste Data-Blocks plus the asset, override and view groups;
  id_paste no longer requires a row.
- The outliner filter popover floats at body level, anchored under the
  toolbar row, so it no longer grows the area's scroll box or covers the
  clear-search button.
- Headed case [outliner-row-type-menus-web]; full headed suite 44/44.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 06:16:41 +08:00
mes123456
44ce5cf402 feat(web): Outliner header exposes the desktop controls and drops the web-only ones
LIBRARIES/ORPHAN_DATA gain the ID-type filter, LIBRARY_OVERRIDES the
lib_override_view_mode selector, VIEW_LAYER the header collection_new
button, ORPHAN_DATA Purge, and DATA_API the keying-set selector with
keyframe insert/delete. The web-only refresh and select/clear/invert/
toggle buttons are removed; selection stays on the keyboard.

The active filter_id_type stays in the ID-type menu after opening a file
whose Main has no data of that type, matching rna_enum_id_type_items,
so the snapshot decoder no longer rejects the open.

Headed case [outliner-header-controls-web] passes; full outliner suite
43/43.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 04:23:53 +08:00
mes123456
8173426da2 feat(web): Outliner filter popover exposes the desktop Options, Search and Filter fields
The popover now writes the native SpaceOutliner fields the desktop
OUTLINER_PT_filter panels expose: per-type object toggles (mesh,
armature, light, camera, grease pencil, empty, others), System
Overrides, exact match and case sensitivity, the five-state object
filter with the shared invert, Object Contents / Object Children,
sort alphabetically, scroll to active and the mode column gate.

Engine OUTLINER_SET_FILTER writes SO_FILTER_NO_OB_* +
SO_FILTER_SHOW_SYSTEM_OVERRIDES + SO_MODE_COLUMN + SO_SCROLL_TO_ACTIVE,
and the snapshot carries the flags plus the Main-derived type
availability so the controls follow the data like bpy.data.

Headed case [outliner-filter-options-web] drives all three panels and
verifies the engine round trip; existing filter cases use the new state
selector.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 16:52:56 +08:00
mes123456
32d9f000f2 feat(web): Outliner Data menu exposes the library override Troubleshoot operations
Desktop OUTLINER_MT_liboverride draws Make/Reset/Clear, a separator, then a
Troubleshoot enum menu (space_outliner.py) that runs
OUTLINER_OT_liboverride_troubleshoot_operation with selection_set=SELECTED:
Resync / Resync Enforce | Delete. Override rows now get the same submenu; the
web entry dispatches OUTLINER_LIBOVERRIDE_TROUBLESHOOT to the engine, which
sets the desktop type enum and executes the native operator in the outliner
context, reporting 已重同步库覆盖 / 已强制重同步库覆盖 / 已删除库覆盖层级.

Verified: headed [outliner-liboverride-troubleshoot-web] plus the full
Outliner headed suite 41/41, check-outliner-headed PASS, and the
outliner-treeview-production regression. armature-editor-coverage-ui still
fails only on the pre-existing PoseConstraintArmatureObject row timeout.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 14:13:57 +08:00
mes123456
0ec223e2a1 feat(web): Outliner Data menu relocates linked data-blocks
Desktop OUTLINER_MT_id_data ends with a separator and a Relocate entry
(space_outliner.py:191) that runs OUTLINER_OT_id_linked_relocate. The web
Outliner now offers the same entry for linked rows and runs the native
chain: the hidden .blend picker stages the chosen library through a new
outlinerRelocateUpload worker request, then the engine edit channel
composes "<file>.blend/<ID type>/<ID name>" and executes
WM_OT_id_linked_relocate directly, with the invoke checks
(linked + linkable type + not indirectly used) mirrored first.

Also fixes two defects the case exposed: OUTLINER_RELOCATE was missing
from the revision-rebase list, so it dispatched with a stale baseRevision
(REVISION_CONFLICT, silently dropped), and the bounded post-open
OUTLINER_REFRESH loop overwrote the relocate feedback with the SceneIR
status; rebuild-only refreshes now keep the last report like the desktop
tree redraw does.

Verified: headed [outliner-relocate-web] plus the full Outliner headed
suite 40/40, check-outliner-headed PASS, outliner-treeview-production
regression passed. armature-editor-coverage-ui-production still fails on
the pre-existing PoseConstraintArmatureObject row timeout proven by the
stash A/B in the menu-separator batch.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 13:34:06 +08:00
mes123456
325761f05d feat(web): Outliner Data menu groups items with desktop separators
Desktop space_outliner.py separates the collection/ID menu into groups
(New/Duplicate | Delete | Select Objects | Instance/Unlink | Visibility |
View Layer | Color Tag | ID Data | assets | overrides | view). The web
Data menu drew every entry in one flat block; insert separators at those
boundaries without adding or removing any operation.

Headed case [outliner-menu-separators-web] asserts the separator count,
the eight group boundaries and that the ID Data submenu keeps its own
two separators. Full headed suite 39/39 PASS, receipt validator PASS.
Treeview regression PASS; the armature fixture load failure reproduces
identically with the pre-change App.tsx (environment timing, not this
batch).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 11:04:07 +08:00
mes123456
d75cfad405 feat(web): Outliner Data menu nests the ID operations under ID Data
Desktop OUTLINER_MT_id_data draws the outliner.id_operation enum (Unlink,
Make Local, Make Single User, Remap Users | Copy, Paste | Add/Clear Fake
User, Rename, Select Linked) as a submenu of the object and collection
menus (space_outliner.py). The flat entries move into it, the Add/Clear
Fake User entries join them, and the clipboard, Make Local and Select
Linked cases now navigate through the submenu.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 10:20:51 +08:00
mes123456
32af2a256d feat(web): Outliner filter popover exposes the Collections and Objects toggles
The engine already maps showCollections/showObjects onto SO_FILTER_NO_COLLECTION
and SO_FILTER_NO_OBJECT (OUTLINER_SET_FILTER); the popover now renders both
checkboxes, and the Data menu hides Unlink in View Layer mode while the
Collections filter is off, matching space_outliner.py. The filter case counts
the two new toggles.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 09:37:53 +08:00
mes123456
25dccb1dc6 feat(web): hide the Outliner View Layer submenu outside View Layer mode
space_outliner.py draws OUTLINER_MT_collection_view_layer only when
space.display_mode == 'VIEW_LAYER'; the web Data menu now follows, so the
submenu disappears in Blender File and Data API modes. The headed case
checks both modes against the Parts collection row.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 08:56:05 +08:00
mes123456
7491ef692c feat(web): Outliner header exposes the Data API Edit menu
OUTLINER_MT_edit_datablocks (keying-set and driver operators) is drawn in
the desktop Outliner header only in Data API mode; the new channel runs
keyingset_add/remove_selected and drivers_add/delete_selected over the
selected RNA rows. The headed case adds the Location property to a keying
set and removes it again.

The UI fixture now waits for the Outliner rows to go quiet after the
open-time expansion burst before selecting a row: rapid expand clicks
re-render the rows and detached the selection click mid-action.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 08:31:23 +08:00
mes123456
af37234a39 feat(web): Outliner Data menu selects objects linked to a data-block
OUTLINER_IDOP_SELECT_LINKED joins the id-operation channel; the headed case
clears Payload's selection, runs Select Linked on its mesh in Blender File
mode, and confirms the View Layer row turns selected again.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 07:51:17 +08:00
mes123456
699535b1de feat(web): Outliner Data menu links collections to the scene
OUTLINER_OT_collection_link is offered outside View Layer mode; the headed
case reaches it through the Blender File display mode, where collection rows
are real ID elements (Data API builds RNA struct rows without IDs). The new
case checks that linking Parts adds a second View Layer occurrence.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 06:55:49 +08:00
mes123456
e09f3f0f45 feat(web): Outliner Data menu exposes the collection view-layer operators
Desktop OUTLINER_MT_collection_view_layer's exclude/holdout entries now run
OUTLINER_OT_collection_exclude_set/clear and collection_holdout_set/clear on
the selected layer collections; the Cycles-only indirect-only entries are
gated on the active scene's render engine, like the desktop menu.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 06:24:16 +08:00
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