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:
parent
409ad04ab3
commit
79f990266b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue