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:
Jeff Young 2022-12-10 13:50:07 +00:00
parent f76811471e
commit 492e6548ff
1 changed files with 4 additions and 1 deletions

View File

@ -336,7 +336,10 @@ bool DRC_TEST_PROVIDER_SOLDER_MASK::checkMaskAperture( BOARD_ITEM* aMaskItem, BO
PCB_LAYER_ID aTestLayer, int aTestNet,
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;
FOOTPRINT* fp = static_cast<FOOTPRINT*>( aMaskItem->GetParentFootprint() );