PartDesign: Fix misplaced preview for Boolean operation
This commit is contained in:
committed by
Chris Hennes
parent
54535e072e
commit
e8aeffc096
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user