Browse Source

drc: Allow graphical items to connect pads

This permits footprints like solder jumpers and net-ties.  (originally
from 3439551543 from Jeff Young)
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
79f990266b
  1. 4
      pcbnew/drc.cpp

4
pcbnew/drc.cpp

@ -1099,6 +1099,10 @@ void DRC::testCopperDrawItem( DRAWSEGMENT* aItem )
if( !pad->IsOnLayer( aItem->GetLayer() ) )
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;
double correctionFactor = GetCircletoPolyCorrectionFactor( segmentCount );
SHAPE_POLY_SET padOutline;

Loading…
Cancel
Save