eagle: Make semantics of cutout correct

Eagle cutout polygons only restrict filled copper, they do not limit
tracks, vias and pads inside them. Fix this behavior in the Eagle
import.

CHANGED: Fix semantics of Eagle cutout polygons
This commit is contained in:
Jan Mrázek 2020-06-07 21:24:29 +02:00 committed by Seth Hillbrand
parent 64231a8491
commit e34a01dc68
1 changed files with 4 additions and 0 deletions

View File

@ -1273,6 +1273,10 @@ ZONE_CONTAINER* EAGLE_PLUGIN::loadPolygon( wxXmlNode* aPolyNode )
if( p.pour == EPOLYGON::CUTOUT ) if( p.pour == EPOLYGON::CUTOUT )
{ {
zone->SetIsKeepout( true ); zone->SetIsKeepout( true );
zone->SetDoNotAllowVias( false );
zone->SetDoNotAllowTracks( false );
zone->SetDoNotAllowPads( false );
zone->SetDoNotAllowFootprints( false );
zone->SetDoNotAllowCopperPour( true ); zone->SetDoNotAllowCopperPour( true );
zone->SetHatchStyle( ZONE_HATCH_STYLE::NO_HATCH ); zone->SetHatchStyle( ZONE_HATCH_STYLE::NO_HATCH );
} }