[Problem] Adding a transformation to a MultiTransform will not work correctly in all cases #12491
Closed
2 tasks done
Labels
Bug
This issue or PR is related to a bug
Solution proposed
The issue has a solution proposed
WB Part Design
Related to the Part Design Workbench
Is there an existing issue for this?
Problem description
I can douple click on a PartDesign feature and edit its parameters even if the Body is not active.
Clicking on Add * transformation in the context menu of a MultiTransform when the Body is not active will not add a new feature.
When a different Body is active than the one of the MultiTransform, the added transformation will reference the wrong Body (in its
_Body
property) and the transformation will fail with the message:Full version info
Subproject(s) affected?
PartDesign
Anything else?
The action handler function is aborted when there is no active Body. And the wrong body is obvisusly used when a different one is active.
FreeCAD/src/Mod/PartDesign/Gui/TaskMultiTransformParameters.cpp
Lines 289 to 297 in 62c8469
It is probably enough to replace the active body with the body of the MultiTransform.
Code of Conduct
The text was updated successfully, but these errors were encountered: