Mask aperture pads can have multiple layers

But as long as they don't have copper, we should treat them as mask
apertures

(cherry picked from commit 02cdb0c6b9)
This commit is contained in:
Seth Hillbrand 2024-02-13 11:07:44 -08:00
parent 481c1592ae
commit 65fd8d22ed
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;
}