Part: 2doffset fix crash by chacking for null shape before adding with builder.Add()
This commit is contained in:
@@ -3130,7 +3130,9 @@ TopoDS_Shape TopoShape::makeOffset2D(double offset, short joinType, bool fill, b
|
||||
BRep_Builder builder;
|
||||
builder.MakeCompound(result);
|
||||
for(TopoDS_Shape &sh : shapesToReturn) {
|
||||
builder.Add(result, sh);
|
||||
if (!sh.IsNull()) {
|
||||
builder.Add(result, sh);
|
||||
}
|
||||
}
|
||||
return TopoDS_Shape(std::move(result));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user