If item is on mask layer then we won't call it again on copper layer.
Fixes https://gitlab.com/kicad/code/kicad/issues/13075
This commit is contained in:
parent
f76811471e
commit
492e6548ff
|
@ -336,7 +336,10 @@ bool DRC_TEST_PROVIDER_SOLDER_MASK::checkMaskAperture( BOARD_ITEM* aMaskItem, BO
|
||||||
PCB_LAYER_ID aTestLayer, int aTestNet,
|
PCB_LAYER_ID aTestLayer, int aTestNet,
|
||||||
BOARD_ITEM** aCollidingItem )
|
BOARD_ITEM** aCollidingItem )
|
||||||
{
|
{
|
||||||
if( !IsCopperLayer( aTestLayer ) )
|
if( aTestLayer == F_Mask && !aTestItem->IsOnLayer( F_Cu ) )
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if( aTestLayer == B_Mask && !aTestItem->IsOnLayer( B_Cu ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
FOOTPRINT* fp = static_cast<FOOTPRINT*>( aMaskItem->GetParentFootprint() );
|
FOOTPRINT* fp = static_cast<FOOTPRINT*>( aMaskItem->GetParentFootprint() );
|
||||||
|
|
Loading…
Reference in New Issue