Allow pad-to-copper-graphic collisions in net-ties.
This is done under the same conditions as track-to-copper-graphic -- the pad or track must also collide with a net-tie pad, and the pad or track to copper-graphic collision must be within the boundary of said pad. Fixes https://gitlab.com/kicad/code/kicad/issues/13008
This commit is contained in:
parent
3f50199dad
commit
1e3186b9cb
|
@ -611,6 +611,13 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa
|
|||
{
|
||||
if( padShape->Collide( otherShape.get(), std::max( 0, clearance - m_drcEpsilon ),
|
||||
&actual, &pos ) )
|
||||
{
|
||||
if( m_drcEngine->IsNetTieExclusion( pad->GetNetCode(), aLayer, pos, other ) )
|
||||
{
|
||||
// Pads connected to pads of a net-tie footprint are allowed to collide
|
||||
// with the net-tie footprint's graphics.
|
||||
}
|
||||
else
|
||||
{
|
||||
std::shared_ptr<DRC_ITEM> drce = DRC_ITEM::Create( DRCE_CLEARANCE );
|
||||
wxString msg = formatMsg( _( "(%s clearance %s; actual %s)" ),
|
||||
|
@ -627,6 +634,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( testHoles )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue