mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Nothing wrong with a NPTH pad with no layers.
Also fixes PTH anchor layer warning to mention "outer". Fixes https://gitlab.com/kicad/code/kicad/-/issues/19752
This commit is contained in:
parent
112e8e7ccb
commit
fb87ea6837
@ -2172,18 +2172,12 @@ void PAD::CheckPad( UNITS_PROVIDER* aUnitsProvider, bool aForPadProperties,
|
||||
LSET padlayers_mask = GetLayerSet();
|
||||
VECTOR2I drill_size = GetDrillSize();
|
||||
|
||||
if( padlayers_mask.none() )
|
||||
aErrorHandler( DRCE_PADSTACK_INVALID, _( "(Pad has no layer)" ) );
|
||||
|
||||
if( GetAttribute() == PAD_ATTRIB::PTH && !IsOnCopperLayer() )
|
||||
aErrorHandler( DRCE_PADSTACK, _( "(PTH pad has no copper layers)" ) );
|
||||
|
||||
if( !padlayers_mask[F_Cu] && !padlayers_mask[B_Cu] )
|
||||
{
|
||||
if( ( drill_size.x || drill_size.y ) && GetAttribute() != PAD_ATTRIB::NPTH )
|
||||
{
|
||||
aErrorHandler( DRCE_PADSTACK, _( "(plated through holes normally have a copper pad on "
|
||||
"at least one layer)" ) );
|
||||
"at least one outer layer)" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user