From b2ad9b5b83f57b1f5d0e9226d051102581474aed Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 25 Oct 2020 11:53:33 +0000 Subject: [PATCH] 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 --- pcbnew/plugins/pcad/pcb_polygon.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pcbnew/plugins/pcad/pcb_polygon.cpp b/pcbnew/plugins/pcad/pcb_polygon.cpp index c05641739c..2ec9aaa717 100644 --- a/pcbnew/plugins/pcad/pcb_polygon.cpp +++ b/pcbnew/plugins/pcad/pcb_polygon.cpp @@ -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();