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:
jean-pierre charras 2022-03-10 12:43:17 +01:00
parent 25507ad6cf
commit d3e9165146
1 changed files with 5 additions and 1 deletions

View File

@ -421,7 +421,11 @@ void BOARD_ADAPTER::addPads( const FOOTPRINT* aFootprint, CONTAINER_2D_BASE* aCo
{
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;
// NPTH pads are not drawn on layers if the shape size and pos is the same as their hole: