PNS: Handle no-tracks setting in keep out zones

Fixes: lp:1748832
* https://bugs.launchpad.net/kicad/+bug/1748832
This commit is contained in:
Maciej Suminski 2018-02-19 10:24:57 +01:00
parent 2f4ec0c0c4
commit ab8e2419c2
1 changed files with 3 additions and 1 deletions

View File

@ -791,11 +791,13 @@ std::unique_ptr<PNS::VIA> PNS_KICAD_IFACE::syncVia( VIA* aVia )
return via;
}
bool PNS_KICAD_IFACE::syncZone( PNS::NODE* aWorld, ZONE_CONTAINER* aZone )
{
SHAPE_POLY_SET poly;
if( !aZone->GetIsKeepout() )
// TODO handle no-via restriction
if( !aZone->GetIsKeepout() || !aZone->GetDoNotAllowTracks() )
return false;
aZone->BuildSmoothedPoly( poly );