pcbnew: add 3d models properties to swig

Fixes: lp:1758858

https://bugs.launchpad.net/kicad/+bug/1758858
This commit is contained in:
qu1ck 2018-08-31 02:31:54 -07:00 committed by Wayne Stambaugh
parent 4d709d2392
commit c68ad411ff
2 changed files with 5 additions and 1 deletions

View File

@ -28,6 +28,7 @@
*/ */
%include <std_vector.i> %include <std_vector.i>
%include <std_list.i>
%include <std_basic_string.i> %include <std_basic_string.i>
%include <std_string.i> %include <std_string.i>
%include <std_map.i> %include <std_map.i>

View File

@ -29,14 +29,17 @@
*/ */
%rename(MODULE_3D_SETTINGS_VECTOR3D) MODULE_3D_SETTINGS::VECTOR3D;
%feature("flatnested");
%include class_module.h %include class_module.h
%feature("flatnested", "");
%rename(Get) operator MODULE*; %rename(Get) operator MODULE*;
%template(MODULE_List) DLIST<MODULE>; %template(MODULE_List) DLIST<MODULE>;
%{ %{
#include <class_module.h> #include <class_module.h>
%} %}
%template(MODULE_3D_SETTINGS_List) std::list<MODULE_3D_SETTINGS>;
// BOARD_ITEM_CONTAINER's interface functions will be implemented by SWIG // BOARD_ITEM_CONTAINER's interface functions will be implemented by SWIG