#2704 newobject after decl does not work (duh)

This commit is contained in:
Thomas Krijnen
2023-01-28 14:18:15 +01:00
parent 6a2307308c
commit 2fc5c6c110
+3 -4
View File
@@ -204,6 +204,9 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
%}
}
%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<string> 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<PyObject*>
}
%}
%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