Non-visible layers are stored in the GPU so still have to be drawn.

Fixes https://gitlab.com/kicad/code/kicad/issues/12792
This commit is contained in:
Jeff Young 2022-11-06 17:36:35 +00:00
parent dd94b2d3a7
commit 396e220133
1 changed files with 1 additions and 1 deletions

View File

@ -1230,7 +1230,7 @@ void PCB_PAINTER::draw( const PAD* aPad, int aLayer )
{
drawShape = aPad->FlashLayer( m_pcbSettings.GetPrintLayers() );
}
else if( aPad->FlashLayer( board->GetVisibleLayers() & board->GetEnabledLayers() ) )
else if( aPad->FlashLayer( board->GetEnabledLayers() ) )
{
drawShape = true;
}