Files
create/src/Gui
forbes 5883ac8a0d
Some checks failed
Build and Test / build (pull_request) Has been cancelled
fix(gui): resolve PartDesign toolbars and breadcrumb when editing body inside assembly
When double-clicking a PartDesign Body inside an Assembly, the editing
context resolver failed to show PartDesign toolbars or a proper
breadcrumb. Three root causes:

1. Priority preemption: assembly.edit (priority 90) always matched
   because the Assembly VP remained in edit mode, blocking all
   PartDesign contexts (priorities 30-40).

2. Wrong active-object key: PartDesign matchers only queried the
   "part" active object, but ViewProviderBody::toggleActiveBody()
   sets "part" to the containing App::Part (which is the Assembly
   itself). The Body is set under "pdbody", which was never queried.

3. Missing refresh trigger: ActiveObjectList::setObject() fires
   Document::signalActivatedViewProvider, but EditingContextResolver
   had no connection to it, so setActiveObject("pdbody", body) never
   triggered a context re-resolve.

Changes:
- Forward signalActivatedViewProvider from Gui::Document to
  Gui::Application (same pattern as signalInEdit/signalResetEdit)
- Connect EditingContextResolver to the new application-level signal
- Add getActivePdBodyObject() helper querying the "pdbody" key
- Add partdesign.in_assembly context (priority 95) that matches when
  a Body is active pdbody while an Assembly is in edit
- Update partdesign.body and partdesign.feature matchers to check
  pdbody before falling back to the part key
- Add Assembly > Body breadcrumb with Blue > Mauve coloring
- Update label resolution to prefer pdbody name
2026-02-21 09:43:51 -06:00
..
2026-02-13 14:08:51 -06:00
2026-02-13 11:48:48 -06:00
2026-02-13 14:09:13 -06:00
2025-10-08 10:56:23 -05:00
2026-02-13 14:09:52 -06:00
2026-01-30 10:58:09 +01:00
2025-11-11 13:49:01 +01:00
2025-11-14 11:56:24 +00:00
2026-02-13 14:09:53 -06:00
2025-11-28 10:15:04 +01:00
2026-02-13 14:09:13 -06:00
2026-02-09 19:15:50 -06:00
2025-11-11 13:49:01 +01:00
2026-02-13 14:09:52 -06:00