drc: Allow graphical items to connect pads

This permits footprints like solder jumpers and net-ties.  (originally
from 3439551543 from Jeff Young)
This commit is contained in:
Seth Hillbrand 2019-02-15 11:19:32 -08:00
parent 409ad04ab3
commit 79f990266b
1 changed files with 4 additions and 0 deletions

View File

@ -1099,6 +1099,10 @@ void DRC::testCopperDrawItem( DRAWSEGMENT* aItem )
if( !pad->IsOnLayer( aItem->GetLayer() ) ) if( !pad->IsOnLayer( aItem->GetLayer() ) )
continue; continue;
// Graphic items are allowed to act as net-ties within their own footprint
if( pad->GetParent() == aItem->GetParent() )
continue;
const int segmentCount = ARC_APPROX_SEGMENTS_COUNT_HIGH_DEF; const int segmentCount = ARC_APPROX_SEGMENTS_COUNT_HIGH_DEF;
double correctionFactor = GetCircletoPolyCorrectionFactor( segmentCount ); double correctionFactor = GetCircletoPolyCorrectionFactor( segmentCount );
SHAPE_POLY_SET padOutline; SHAPE_POLY_SET padOutline;