Pcbnew DRC: allow technical->copper pad overlap

This permits things like mask "pads" over copper pads for custom mask openings.
This commit is contained in:
Andrew Zonenberg 2016-01-25 19:33:40 -05:00 committed by Chris Pavlina
parent a23e7129d4
commit e91dab816c
1 changed files with 7 additions and 0 deletions

View File

@ -955,6 +955,13 @@ bool DRC::doPadToPadsDrc( D_PAD* aRefPad, D_PAD** aStart, D_PAD** aEnd, int x_li
if( pad->PadNameEqual( aRefPad ) )
continue;
}
// if either pad has no drill and is only on technical layers, not a clearance violation
if( ( ( pad->GetLayerSet() & layerMask ) == 0 && !pad->GetDrillSize().x ) ||
( ( aRefPad->GetLayerSet() & layerMask ) == 0 && !aRefPad->GetDrillSize().x ) )
{
continue;
}
if( !checkClearancePadToPad( aRefPad, pad ) )
{