Commit 7408cc75 authored by wmayer's avatar wmayer
Browse files

0000919: Crash on upgrade from wire to face

parent 480f2803
......@@ -110,6 +110,10 @@ int TopoShapeFacePy::PyInit(PyObject* args, PyObject* /*kwd*/)
if (sh.ShapeType() == TopAbs_WIRE) {
BRepBuilderAPI_MakeFace mkFace(TopoDS::Wire(sh));
if (!mkFace.IsDone()) {
PyErr_SetString(PyExc_Exception, "Failed to create face from wire");
return -1;
}
getTopoShapePtr()->_Shape = mkFace.Face();
return 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment