From 2fc5c6c110784819f273904b28003a39881d877d Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 28 Jan 2023 14:18:15 +0100 Subject: [PATCH] #2704 newobject after decl does not work (duh) --- src/ifcwrap/IfcGeomWrapper.i | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ifcwrap/IfcGeomWrapper.i b/src/ifcwrap/IfcGeomWrapper.i index 29264499c5..8e568ce0ea 100644 --- a/src/ifcwrap/IfcGeomWrapper.i +++ b/src/ifcwrap/IfcGeomWrapper.i @@ -204,6 +204,9 @@ struct ShapeRTTI : public boost::static_visitor %} } +%newobject construct_iterator_with_include_exclude; +%newobject construct_iterator_with_include_exclude_globalid; +%newobject construct_iterator_with_include_exclude_id; // I couldn't get the vector typemap to be applied when %extending Iterator constructor. // anyway it does not matter as SWIG generates C code without actual constructors @@ -230,10 +233,6 @@ struct ShapeRTTI : public boost::static_visitor } %} -%newobject construct_iterator_with_include_exclude; -%newobject construct_iterator_with_include_exclude_globalid; -%newobject construct_iterator_with_include_exclude_id; - %extend IfcGeom::Representation::Triangulation { %pythoncode %{ # Hide the getters with read-only property implementations