footprint anchors: only show them for footprints on visible layers

This commit is contained in:
Mike Williams
2025-12-10 11:37:37 -05:00
parent 65e486499e
commit a017fb265f
+4
View File
@@ -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;