Skip to content

Commit 6c64319

Browse files
authored
Merge pull request tpaviot#614 from CadQuery/master
Use Py_RETURN_NONE macro in the TopoDS_Shape typemap
2 parents 1c5db52 + 5dd9a1c commit 6c64319

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/SWIG_files/common/FunctionTransformers.i

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ FairCurve_Analysis & function transformation
129129

130130
%typemap(out) TopoDS_Shape {
131131
PyObject *resultobj = 0;
132-
if(!$1.IsNull()){
132+
if($1.IsNull()){
133+
Py_RETURN_NONE;
134+
} else {
133135
TopAbs_ShapeEnum shape_type = $1.ShapeType();
134136
switch (shape_type)
135137
{

0 commit comments

Comments
 (0)