Suppress unflashed annular rings only when copper layer is primary.

Fixes https://gitlab.com/kicad/code/kicad/issues/13471
This commit is contained in:
Jeff Young 2023-01-11 18:15:07 +00:00
parent c85dcbc4e1
commit 096cc7a5ad
1 changed files with 6 additions and 2 deletions

View File

@ -316,6 +316,8 @@ COLOR4D PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer ) cons
if( !pad->FlashLayer( primary ) )
{
isActive = false;
if( IsCopperLayer( primary ) )
hide = true;
}
@ -347,6 +349,8 @@ COLOR4D PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer ) cons
if( !via->FlashLayer( primary ) )
{
isActive = false;
if( IsCopperLayer( primary ) )
hide = true;
}