Remove Eagle islands by default unless told otherwise

Fixes https://gitlab.com/kicad/code/kicad/issues/13503
This commit is contained in:
Seth Hillbrand 2023-01-17 12:49:24 -08:00
parent c347ceae7e
commit 60ba245474
1 changed files with 7 additions and 0 deletions

View File

@ -1528,6 +1528,13 @@ ZONE* EAGLE_PLUGIN::loadPolygon( wxXmlNode* aPolyNode )
vertex = vertex->GetNext();
}
// According to Eagle's doc, by default, the orphans (islands in KiCad parlance)
// are always removed
if( !p.orphans || !p.orphans.Get() )
zone->SetIslandRemovalMode( ISLAND_REMOVAL_MODE::ALWAYS );
else
zone->SetIslandRemovalMode( ISLAND_REMOVAL_MODE::NEVER );
vertices.push_back( vertices[0] );
SHAPE_POLY_SET polygon;