mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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:
parent
fa6dc95553
commit
02cdb0c6b9
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user