Part, PartDesign, Attacher: fix a few problems with infinite shapes

To throw an error instead of returning a semi-infinite result that kills rendering.
fixes #3439
This commit is contained in:
DeepSOIC
2018-09-11 23:52:45 +03:00
committed by wmayer
parent eb8629d077
commit 38df1ae742
3 changed files with 16 additions and 7 deletions

View File

@@ -44,7 +44,9 @@ Line::Line()
BRepBuilderAPI_MakeEdge builder(gp_Lin(gp_Pnt(0,0,0), gp_Dir(0,0,1)));
if (!builder.IsDone())
return;
Shape.setValue(builder.Shape());
TopoDS_Shape myShape = builder.Shape();
myShape.Infinite(Standard_True);
Shape.setValue(myShape);
Support.touch();
}