fix: update ztools submodule — eager command registration (#52) #71
Reference in New Issue
Block a user
Delete Branch "fix/manipulator-timing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Resolves #52. Updates the ztools submodule to fix the WorkbenchManipulator timing bug.
Problem
The
_ZToolsPartDesignManipulatorand ztools commands were registered insideZToolsWorkbench.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 inmods/ztools/ztools/InitGui.py. This ensures they execute whensrc/Mod/Create/InitGui.pyexec()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—fix: register commands and manipulator at module scope (#52)