Careful about hiding pad layers.
We also draw netnames and clearance lines based on some of these layers.
This commit is contained in:
parent
0a5438ec88
commit
f22316b868
|
@ -238,7 +238,7 @@ bool PAD::FlashLayer( int aLayer ) const
|
|||
if( aLayer != UNDEFINED_LAYER && !IsOnLayer( static_cast<PCB_LAYER_ID>( aLayer ) ) )
|
||||
return false;
|
||||
|
||||
if( GetAttribute() == PAD_ATTRIB::NPTH )
|
||||
if( GetAttribute() == PAD_ATTRIB::NPTH && IsCopperLayer( aLayer ) )
|
||||
{
|
||||
if( GetShape() == PAD_SHAPE::CIRCLE && GetDrillShape() == PAD_DRILL_SHAPE_CIRCLE )
|
||||
{
|
||||
|
@ -1382,15 +1382,6 @@ double PAD::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const
|
|||
return ( double ) Millimeter2iu( 5 ) / divisor;
|
||||
}
|
||||
|
||||
if( aLayer == LAYER_PADS_TH
|
||||
&& GetShape() != PAD_SHAPE::CUSTOM
|
||||
&& GetSizeX() <= GetDrillSizeX()
|
||||
&& GetSizeY() <= GetDrillSizeY() )
|
||||
{
|
||||
// Don't tweak the drawing code with a degenerate pad
|
||||
return HIDE;
|
||||
}
|
||||
|
||||
// Passed all tests; show.
|
||||
return 0.0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue