Browse Source

PNS: Handle no-tracks setting in keep out zones

Fixes: lp:1748832
* https://bugs.launchpad.net/kicad/+bug/1748832
pull/5/merge
Maciej Suminski 8 years ago
parent
commit
ab8e2419c2
  1. 4
      pcbnew/router/pns_kicad_iface.cpp

4
pcbnew/router/pns_kicad_iface.cpp

@ -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 );

Loading…
Cancel
Save