Add CloneFrom API for BOARD_DESIGN_SETTINGS in SWIG

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6885
This commit is contained in:
Jon Evans 2021-11-08 23:01:24 -05:00
parent 75d75799f7
commit 0234ae3003
1 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,16 @@
%ignore BOARD_DESIGN_SETTINGS::m_Pad_Master;
%ignore BOARD_DESIGN_SETTINGS::m_DRCEngine;
%include <board_design_settings.h>
%{
#include <board_design_settings.h>
%}
%include <board_design_settings.h>
%extend BOARD_DESIGN_SETTINGS
{
void CloneFrom( BOARD_DESIGN_SETTINGS* aOther )
{
*$self = *aOther;
}
}