Part: replace PyObject_IsTrue with Base::asBoolean
This commit is contained in:
@@ -143,7 +143,7 @@ PyObject* GeometrySurfacePy::toShell(PyObject *args, PyObject* kwds)
|
||||
try {
|
||||
if (!s.IsNull()) {
|
||||
if (segm) {
|
||||
Standard_Boolean segment = PyObject_IsTrue(segm) ? Standard_True : Standard_False;
|
||||
Standard_Boolean segment = Base::asBoolean(segm);
|
||||
BRepBuilderAPI_MakeShell mkBuilder(s, segment);
|
||||
TopoDS_Shape sh = mkBuilder.Shape();
|
||||
return new TopoShapeShellPy(new TopoShape(sh));
|
||||
|
||||
Reference in New Issue
Block a user