From 156c506f19c2019143f3dfd18271219e80b30312 Mon Sep 17 00:00:00 2001 From: bgbsww Date: Wed, 8 Nov 2023 11:56:20 -0500 Subject: [PATCH] Fix variable name, clean --- src/Mod/PartDesign/App/FeatureBoolean.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/App/FeatureBoolean.cpp b/src/Mod/PartDesign/App/FeatureBoolean.cpp index 9bbcd43da5..8341db8710 100644 --- a/src/Mod/PartDesign/App/FeatureBoolean.cpp +++ b/src/Mod/PartDesign/App/FeatureBoolean.cpp @@ -106,15 +106,14 @@ App::DocumentObjectExecReturn *Boolean::execute() TopoDS_Shape result = baseTopShape.getShape(); - Base::Placement sp = baseBody->globalPlacement(); - sp.invert(); + Base::Placement bodyPlacement = baseBody->globalPlacement().inverse(); for (auto tool : tools) { if(!tool->isDerivedFrom(Part::Feature::getClassTypeId())) return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Cannot do boolean with anything but Part::Feature and its derivatives")); Part::TopoShape toolShape = static_cast(tool)->Shape.getShape(); - toolShape.setPlacement(sp *toolShape.getPlacement()); + toolShape.setPlacement(bodyPlacement * toolShape.getPlacement()); TopoDS_Shape shape = toolShape.getShape(); TopoDS_Shape boolOp;