python wrap: fix undefined FILLED/SKETCH constants in pcbnew.py

Fixes #6070
https://gitlab.com/kicad/code/kicad/issues/6070
This commit is contained in:
jean-pierre charras 2020-10-21 13:23:06 +02:00
parent d4eb7b0f3d
commit b907f79485
2 changed files with 4 additions and 2 deletions

View File

@ -80,6 +80,7 @@ principle should be easily implemented by adapting the current STL containers.
// headers/imports that must be included in the _wrapper.cpp at top
%{
#include <outline_mode.h>
#include <macros.h>
#include <cstddef>
#include <eda_item.h>
@ -107,6 +108,7 @@ principle should be easily implemented by adapting the current STL containers.
%ignore GetNewConfig;
// header files that must be wrapped
%include <outline_mode.h>
%include macros.h
%include core/typeinfo.h
%include eda_item.h

View File

@ -23,8 +23,8 @@
/* Options to draw items with thickness ( segments, arcs, circles, texts...) */
enum OUTLINE_MODE
{
SKETCH = 0, // sketch mode: draw segments outlines only
FILLED = 1 // normal mode: solid segments
SKETCH = 0, // sketch mode: draw segments outlines only
FILLED = 1 // normal mode: solid segments
};
#endif