Browse Source

Only disable unflashed layers when they're conditionally flashed.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16061
newinvert
Jeff Young 2 years ago
parent
commit
d41f4ec842
  1. 2
      pcbnew/pcb_painter.cpp

2
pcbnew/pcb_painter.cpp

@ -345,7 +345,7 @@ COLOR4D PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer ) cons
{
const PAD* pad = static_cast<const PAD*>( item );
if( !pad->FlashLayer( primary ) )
if( pad->IsOnLayer( primary ) && !pad->FlashLayer( primary ) )
{
isActive = false;

Loading…
Cancel
Save