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;