Mask aperture pads can have multiple layers

But as long as they don't have copper, we should treat them as mask
apertures
This commit is contained in:
Seth Hillbrand 2024-02-13 11:07:44 -08:00
parent fa6dc95553
commit 02cdb0c6b9
1 changed files with 2 additions and 2 deletions

View File

@ -348,9 +348,9 @@ bool isMaskAperture( BOARD_ITEM* aItem )
static const LSET saved( 2, F_Mask, B_Mask );
LSET maskLayers = aItem->GetLayerSet() & saved;
LSET otherLayers = aItem->GetLayerSet() & ~saved;
LSET copperLayers = ( aItem->GetLayerSet() & ~saved ) & LSET::AllCuMask();
return maskLayers.count() > 0 && otherLayers.count() == 0;
return maskLayers.count() > 0 && copperLayers.count() == 0;
}