Run hole clearance tests on NPTH pads, but not copper clearance.
Fixes https://gitlab.com/kicad/code/kicad/issues/8295
This commit is contained in:
parent
b7279c0bab
commit
e3eacafbcb
|
@ -513,7 +513,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa
|
|||
testHoles = false;
|
||||
}
|
||||
|
||||
if( pad->GetAttribute() == PAD_ATTRIB_NPTH && !pad->FlashLayer( layer ) )
|
||||
if( pad->GetAttribute() == PAD_ATTRIB_NPTH )
|
||||
testClearance = false;
|
||||
|
||||
if( !IsCopperLayer( layer ) )
|
||||
|
|
|
@ -229,8 +229,7 @@ bool PAD::FlashLayer( int aLayer ) const
|
|||
if( m_keepTopBottomLayer && ( aLayer == F_Cu || aLayer == B_Cu ) )
|
||||
return IsOnLayer( static_cast<PCB_LAYER_ID>( aLayer ) );
|
||||
|
||||
return board->GetConnectivity()->IsConnectedOnLayer( this, static_cast<int>( aLayer ),
|
||||
types );
|
||||
return board->GetConnectivity()->IsConnectedOnLayer( this, static_cast<int>( aLayer ), types );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue