Only disable unflashed layers when they're conditionally flashed.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16061
This commit is contained in:
Jeff Young 2023-11-10 13:57:23 +00:00
parent e6081cf31a
commit d41f4ec842
1 changed files with 1 additions and 1 deletions

View File

@ -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;