Allow colliding pads in netties as well as graphic shapes.

Fixes https://gitlab.com/kicad/code/kicad/issues/6584
This commit is contained in:
Jeff Young 2020-12-05 19:24:18 +00:00
parent d6c3c6f7fa
commit 4c5567a627
1 changed files with 5 additions and 1 deletions

View File

@ -461,8 +461,12 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa
bool isNetTie = padParent->IsNetTie();
// Graphic items are allowed to act as net-ties within their own footprint
if( isNetTie && other->Type() == PCB_FP_SHAPE_T && other->GetParent() == padParent )
if( isNetTie
&& ( other->Type() == PCB_FP_SHAPE_T || other->Type() == PCB_PAD_T )
&& other->GetParent() == padParent )
{
testClearance = false;
}
// Track clearances are tested in testTrackClearances()
if( dynamic_cast<TRACK*>( other) )