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-02-09 18:59:56 -05:00 committed by Wayne Stambaugh
parent 342ec2be0e
commit 1aa6932b12
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 ) )
{