Implement real layer test for visibility.
This commit is contained in:
parent
d65f9ad2d8
commit
639fdb915a
|
@ -1250,10 +1250,13 @@ bool PNS_KICAD_IFACE::IsItemVisible( const PNS::ITEM* aItem ) const
|
||||||
if( settings->GetHighContrast() )
|
if( settings->GetHighContrast() )
|
||||||
isOnVisibleLayer = item->IsOnLayer( settings->GetPrimaryHighContrastLayer() );
|
isOnVisibleLayer = item->IsOnLayer( settings->GetPrimaryHighContrastLayer() );
|
||||||
|
|
||||||
if( m_view->IsVisible( item ) && isOnVisibleLayer
|
if( m_view->IsVisible( item ) && isOnVisibleLayer )
|
||||||
&& item->ViewGetLOD( item->GetLayer(), m_view ) < m_view->GetScale() )
|
|
||||||
{
|
{
|
||||||
return true;
|
for( PCB_LAYER_ID layer : item->GetLayerSet().Seq() )
|
||||||
|
{
|
||||||
|
if( item->ViewGetLOD( layer, m_view ) < m_view->GetScale() )
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Items hidden in the router are not hidden on the board
|
// Items hidden in the router are not hidden on the board
|
||||||
|
|
Loading…
Reference in New Issue