3D viewer: fix overzealous pad filter in BOARD_ADAPTER::addPads()
Fixes #11092 https://gitlab.com/kicad/code/kicad/issues/11092
This commit is contained in:
parent
25507ad6cf
commit
d3e9165146
|
@ -421,7 +421,11 @@ void BOARD_ADAPTER::addPads( const FOOTPRINT* aFootprint, CONTAINER_2D_BASE* aCo
|
||||||
{
|
{
|
||||||
for( PAD* pad : aFootprint->Pads() )
|
for( PAD* pad : aFootprint->Pads() )
|
||||||
{
|
{
|
||||||
if( !pad->FlashLayer( aLayerId ) )
|
if( !pad->IsOnLayer( aLayerId ) )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
// Skip pad annulus when not connected on this layer (if removing is enabled)
|
||||||
|
if( !pad->FlashLayer( aLayerId ) && IsCopperLayer( aLayerId ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// NPTH pads are not drawn on layers if the shape size and pos is the same as their hole:
|
// NPTH pads are not drawn on layers if the shape size and pos is the same as their hole:
|
||||||
|
|
Loading…
Reference in New Issue