Check for older tags in pcad import

The pourOutline/planeOutline do not include support for fillets

Fixes https://gitlab.com/kicad/code/kicad/issues/11749

(cherry picked from commit 72b7f9fe10)
This commit is contained in:
Seth Hillbrand 2022-06-08 16:15:21 -07:00
parent 6e50a3518f
commit 124bdb6673
2 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,10 @@ bool PCB_COPPER_POUR::Parse( XNODE* aNode, const wxString& aDefaultUnits,
lNode = FindNode( aNode, wxT( "pcbPoly" ) ); lNode = FindNode( aNode, wxT( "pcbPoly" ) );
// If the pour doesn't have the newer `pcbPoly` tag, check for the older `pourOutline` tag
if( !lNode )
lNode = FindNode( aNode, wxT( "pourOutline" ) );
if( lNode ) if( lNode )
{ {
// retrieve copper pour outline // retrieve copper pour outline

View File

@ -70,6 +70,9 @@ bool PCB_PLANE::Parse( XNODE* aNode, const wxString& aDefaultUnits,
lNode = FindNode( aNode, wxT( "pcbPoly" ) ); lNode = FindNode( aNode, wxT( "pcbPoly" ) );
if( !lNode )
lNode = FindNode( aNode, wxT( "planeOutline" ) );
if( lNode ) if( lNode )
{ {
// retrieve plane outline // retrieve plane outline