From 204c37aa59caf9847c2717f0844d7cd08d9e2b9e Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sat, 22 Feb 2014 11:01:43 -0300 Subject: [PATCH] Fixed a regression in wire.makePipeShell caused by commit d62ed23 --- src/Mod/Part/App/TopoShapeWirePyImp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Part/App/TopoShapeWirePyImp.cpp b/src/Mod/Part/App/TopoShapeWirePyImp.cpp index 1e2b460c7..2e5f6ac20 100644 --- a/src/Mod/Part/App/TopoShapeWirePyImp.cpp +++ b/src/Mod/Part/App/TopoShapeWirePyImp.cpp @@ -244,12 +244,12 @@ PyObject* TopoShapeWirePy::makePipeShell(PyObject *args) PyObject *obj; PyObject *make_solid = Py_False; PyObject *is_Frenet = Py_False; - PyObject *transition = Py_False; + int transition = 0; - if (PyArg_ParseTuple(args, "O|O!O!O!", &obj, + if (PyArg_ParseTuple(args, "O|O!O!i", &obj, &PyBool_Type, &make_solid, &PyBool_Type, &is_Frenet, - &PyBool_Type, &transition)) { + &transition)) { try { TopTools_ListOfShape sections; Py::Sequence list(obj); @@ -262,7 +262,7 @@ PyObject* TopoShapeWirePy::makePipeShell(PyObject *args) TopoDS_Shape shape = this->getTopoShapePtr()->makePipeShell(sections, PyObject_IsTrue(make_solid) ? Standard_True : Standard_False, PyObject_IsTrue(is_Frenet) ? Standard_True : Standard_False, - PyObject_IsTrue(transition) ? Standard_True : Standard_False); + transition); return new TopoShapePy(new TopoShape(shape)); } catch (Standard_Failure) {