Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FreeCAD
FreeCAD
Commits
7408cc75
Commit
7408cc75
authored
Dec 20, 2012
by
wmayer
Browse files
0000919: Crash on upgrade from wire to face
parent
480f2803
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Mod/Part/App/TopoShapeFacePyImp.cpp
View file @
7408cc75
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment