fix: update ztools submodule — eager command registration (#52) #71

Merged
forbes merged 2 commits from fix/manipulator-timing into main 2026-02-09 01:28:34 +00:00
Owner

Summary

Resolves #52. Updates the ztools submodule to fix the WorkbenchManipulator timing bug.

Problem

The _ZToolsPartDesignManipulator and ztools commands were registered inside ZToolsWorkbench.Initialize(), which only runs on first workbench activation. If PartDesign activated before ZTools (e.g. when a user's default workbench is not ZTools), the manipulator wasn't installed and ztools buttons (DatumCreator, DatumManager, EnhancedPocket, RotatedLinearPattern) never appeared in PartDesign.

Fix

Moved command imports and manipulator installation from Initialize() to module scope in mods/ztools/ztools/InitGui.py. This ensures they execute when src/Mod/Create/InitGui.py exec()s the file at startup — before any workbench activation.

Initialize() retains the dependent workbench activation, toolbar/menu construction, and other init logic.

ztools commit

12e3322fix: register commands and manipulator at module scope (#52)

## Summary Resolves #52. Updates the ztools submodule to fix the WorkbenchManipulator timing bug. ### Problem The `_ZToolsPartDesignManipulator` and ztools commands were registered inside `ZToolsWorkbench.Initialize()`, which only runs on first workbench activation. If PartDesign activated before ZTools (e.g. when a user's default workbench is not ZTools), the manipulator wasn't installed and ztools buttons (DatumCreator, DatumManager, EnhancedPocket, RotatedLinearPattern) never appeared in PartDesign. ### Fix Moved command imports and manipulator installation from `Initialize()` to module scope in `mods/ztools/ztools/InitGui.py`. This ensures they execute when `src/Mod/Create/InitGui.py` `exec()`s the file at startup — before any workbench activation. `Initialize()` retains the dependent workbench activation, toolbar/menu construction, and other init logic. ### ztools commit [`12e3322`](https://git.kindred-systems.com/kindred/ztools/commit/12e3322) — `fix: register commands and manipulator at module scope (#52)`
forbes added 1 commit 2026-02-08 23:58:50 +00:00
fix: update ztools submodule — eager command registration (#52)
Some checks failed
Build and Test / build (pull_request) Has been cancelled
0a0ac547ef
Updates ztools to include the manipulator timing fix. Commands and the
PartDesign manipulator are now registered at module scope instead of
during ZToolsWorkbench.Initialize(), ensuring ztools buttons appear in
PartDesign regardless of workbench activation order.
forbes added 1 commit 2026-02-09 01:28:23 +00:00
Merge branch 'main' into fix/manipulator-timing
Some checks failed
Build and Test / build (pull_request) Has been cancelled
ac4f01c5c0
forbes merged commit f391c526cd into main 2026-02-09 01:28:34 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/create#71