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:37:29 +00:00
parent dd94b2d3a7
commit 396e220133
+1 -1
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;
}