Skip to content

Commit

Permalink
PartDesign: Check closedness in AddSub refine function
Browse files Browse the repository at this point in the history
  • Loading branch information
davidosterberg authored and wwmayer committed Feb 19, 2021
1 parent 857ba06 commit c107ca3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/PartDesign/App/FeatureAddSub.cpp
Expand Up @@ -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&) {
Expand Down

0 comments on commit c107ca3

Please sign in to comment.