From de6038ff9bccbe3d4c8d8b03fb03c6e4ced1b4e1 Mon Sep 17 00:00:00 2001 From: Paddle Date: Fri, 24 Mar 2023 15:16:09 +0100 Subject: [PATCH] PartDesign: Fix placement issue with thickness tool when the feature was empty. --- src/Mod/PartDesign/App/FeatureThickness.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/PartDesign/App/FeatureThickness.cpp b/src/Mod/PartDesign/App/FeatureThickness.cpp index 2dbe7d76ef..59d52e13fa 100644 --- a/src/Mod/PartDesign/App/FeatureThickness.cpp +++ b/src/Mod/PartDesign/App/FeatureThickness.cpp @@ -76,10 +76,16 @@ App::DocumentObjectExecReturn *Thickness::execute() //If no element is selected, then we use a copy of previous feature. if (subStrings.empty()) { + //We must set the placement of the feature in case it's empty. + this->positionByBaseFeature(); this->Shape.setValue(TopShape); return App::DocumentObject::StdReturn; } + /* If the feature was empty at some point, then Placement was set by positionByBaseFeature. + * However makeThickSolid apparantly requires the placement to be empty, so we have to clear it*/ + this->Placement.setValue(Base::Placement()); + TopTools_ListOfShape closingFaces; for (std::vector::const_iterator it = subStrings.begin(); it != subStrings.end(); ++it) {