Treat P-CAD copper polygons as very-high-priority zones.

In P-CAD they don't avoid other copper pours, so this should more
accurately reflect that in Kicad.  (Note that only the very-high-
priority part is new; we've always coverted them to zones.)

Fixes https://gitlab.com/kicad/code/kicad/issues/3997
This commit is contained in:
Jeff Young 2020-10-25 11:53:33 +00:00
parent 4789794e0e
commit b2ad9b5b83
1 changed files with 6 additions and 1 deletions

View File

@ -40,7 +40,12 @@ PCB_POLYGON::PCB_POLYGON( PCB_CALLBACKS* aCallbacks, BOARD* aBoard, int aPCadLay
PCB_COMPONENT( aCallbacks, aBoard )
{
m_width = 0;
m_priority = 0;
// P-CAD polygons are similar to zones (and we're going to convert them as such), except
// that they don't avoid other copper pours. So effectively they're very-high-priority
// zones.
m_priority = 100000;
m_objType = wxT( 'Z' );
m_PCadLayer = aPCadLayer;
m_KiCadLayer = GetKiCadLayer();