Fix variable name, clean

This commit is contained in:
bgbsww
2023-11-08 11:56:20 -05:00
committed by Yorik van Havre
parent 2230850e3d
commit 156c506f19

View File

@@ -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<Part::Feature*>(tool)->Shape.getShape();
toolShape.setPlacement(sp *toolShape.getPlacement());
toolShape.setPlacement(bodyPlacement * toolShape.getPlacement());
TopoDS_Shape shape = toolShape.getShape();
TopoDS_Shape boolOp;