From a017fb265fb3df7dcc847ee228d040457338d536 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Wed, 10 Dec 2025 11:37:37 -0500 Subject: [PATCH] footprint anchors: only show them for footprints on visible layers --- pcbnew/footprint.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index e44647b4ad..24b589bbc5 100644 --- a/pcbnew/footprint.cpp +++ b/pcbnew/footprint.cpp @@ -2381,6 +2381,10 @@ double FOOTPRINT::ViewGetLOD( int aLayer, const KIGFX::VIEW* aView ) const return LOD_HIDE; } + // Only show anchors if the layer the footprint is on is visible + if( aLayer == LAYER_ANCHOR && !aView->IsLayerVisible( m_layer ) ) + return LOD_HIDE; + int layer = ( m_layer == F_Cu ) ? LAYER_FOOTPRINTS_FR : ( m_layer == B_Cu ) ? LAYER_FOOTPRINTS_BK : LAYER_ANCHOR;