UNDEFINED_LAYER is always flashed
This is already true for vias and should be true for pads as well Fixes https://gitlab.com/kicad/code/kicad/issues/11335
This commit is contained in:
parent
d3a60f7d83
commit
7d96d5940d
|
@ -219,6 +219,9 @@ bool PAD::FlashLayer( int aLayer ) const
|
||||||
if( aLayer != UNDEFINED_LAYER && !IsOnLayer( static_cast<PCB_LAYER_ID>( aLayer ) ) )
|
if( aLayer != UNDEFINED_LAYER && !IsOnLayer( static_cast<PCB_LAYER_ID>( aLayer ) ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if( aLayer == UNDEFINED_LAYER )
|
||||||
|
return true;
|
||||||
|
|
||||||
if( GetAttribute() == PAD_ATTRIB::NPTH && IsCopperLayer( aLayer ) )
|
if( GetAttribute() == PAD_ATTRIB::NPTH && IsCopperLayer( aLayer ) )
|
||||||
{
|
{
|
||||||
if( GetShape() == PAD_SHAPE::CIRCLE && GetDrillShape() == PAD_DRILL_SHAPE_CIRCLE )
|
if( GetShape() == PAD_SHAPE::CIRCLE && GetDrillShape() == PAD_DRILL_SHAPE_CIRCLE )
|
||||||
|
|
Loading…
Reference in New Issue