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:
parent
481c1592ae
commit
65fd8d22ed
|
@ -348,9 +348,9 @@ bool isMaskAperture( BOARD_ITEM* aItem )
|
||||||
static const LSET saved( 2, F_Mask, B_Mask );
|
static const LSET saved( 2, F_Mask, B_Mask );
|
||||||
|
|
||||||
LSET maskLayers = aItem->GetLayerSet() & saved;
|
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…
Reference in New Issue