Merge pull request #5113 from jack9603301/master
[Part] Fix null pointer error in sweep operation - Fixes #0004764
This commit is contained in:
@@ -544,6 +544,10 @@ App::DocumentObjectExecReturn *Sweep::execute(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if(path.IsNull()) {
|
||||
return new App::DocumentObjectExecReturn("Spine path missing, sweep operation stopped.");
|
||||
}
|
||||
|
||||
if (path.ShapeType() == TopAbs_EDGE) {
|
||||
BRepBuilderAPI_MakeWire mkWire(TopoDS::Edge(path));
|
||||
path = mkWire.Wire();
|
||||
|
||||
Reference in New Issue
Block a user