From e91dab816ce5d135c3633154f0742eaf543e5855 Mon Sep 17 00:00:00 2001 From: Andrew Zonenberg Date: Mon, 25 Jan 2016 19:33:40 -0500 Subject: [PATCH] Pcbnew DRC: allow technical->copper pad overlap This permits things like mask "pads" over copper pads for custom mask openings. --- pcbnew/drc.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcbnew/drc.cpp b/pcbnew/drc.cpp index 57eaeba786..ef61b5d90f 100644 --- a/pcbnew/drc.cpp +++ b/pcbnew/drc.cpp @@ -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 ) ) {