PartDesign: Fix misplaced preview for Boolean operation

This commit is contained in:
Kacper Donat
2025-10-19 22:54:25 +02:00
committed by Chris Hennes
parent 54535e072e
commit e8aeffc096
2 changed files with 4 additions and 1 deletions

View File

@@ -186,7 +186,9 @@ void Boolean::updatePreviewShape()
std::vector<TopoShape> shapes;
for (auto& obj : Group.getValues()) {
shapes.push_back(getTopoShape(obj, Part::ShapeOption::ResolveLink | Part::ShapeOption::Transform));
auto shape = getTopoShape(obj, Part::ShapeOption::ResolveLink | Part::ShapeOption::Transform);
shape.setPlacement(shape.getPlacement().inverse() * globalPlacement());
shapes.push_back(shape);
}
TopoShape result;

View File

@@ -166,6 +166,7 @@ void ViewProviderBoolean::updatePreview()
}
Part::TopoShape toolShape = feature->Shape.getShape();
toolShape.setPlacement(toolShape.getPlacement().inverse() * feature->globalPlacement());
auto pcToolPreview = new PartGui::SoPreviewShape;
updatePreviewShape(toolShape, pcToolPreview);