PartDesign: Check closedness in AddSub refine function

This commit is contained in:
David Osterberg
2021-02-18 09:52:24 +01:00
committed by wwmayer
parent 857ba06219
commit c107ca3100

View File

@@ -71,6 +71,9 @@ TopoDS_Shape FeatureAddSub::refineShapeIfActive(const TopoDS_Shape& oldShape) co
try {
Part::BRepBuilderAPI_RefineModel mkRefine(oldShape);
TopoDS_Shape resShape = mkRefine.Shape();
if (!TopoShape(resShape).isClosed()) {
return oldShape;
}
return resShape;
}
catch (Standard_Failure&) {