From 096cc7a5ad5bc1eb3caded8a93f40c66b062a824 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 11 Jan 2023 18:15:07 +0000 Subject: [PATCH] Suppress unflashed annular rings only when copper layer is primary. Fixes https://gitlab.com/kicad/code/kicad/issues/13471 --- pcbnew/pcb_painter.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index 88eb09f70f..18ba098dbd 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -316,7 +316,9 @@ COLOR4D PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer ) cons if( !pad->FlashLayer( primary ) ) { isActive = false; - hide = true; + + if( IsCopperLayer( primary ) ) + hide = true; } if( m_PadEditModePad && pad != m_PadEditModePad ) @@ -347,7 +349,9 @@ COLOR4D PCB_RENDER_SETTINGS::GetColor( const VIEW_ITEM* aItem, int aLayer ) cons if( !via->FlashLayer( primary ) ) { isActive = false; - hide = true; + + if( IsCopperLayer( primary ) ) + hide = true; } break;