Files
workinf_Blender_Wasm/tools/web
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
..