Don't look at project layer visibilities for footprint editor.

Fixes https://gitlab.com/kicad/code/kicad/issues/6873
This commit is contained in:
Jeff Young 2020-12-29 17:03:10 +00:00
parent 97a99beef5
commit 35a5781f68
1 changed files with 12 additions and 2 deletions

View File

@ -2071,8 +2071,18 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili
}
// All other items are selected only if the layer on which they exist is visible
return board()->IsLayerVisible( aItem->GetLayer() )
&& aItem->ViewGetLOD( aItem->GetLayer(), view() ) < view()->GetScale();
if( m_isFootprintEditor )
{
if( !view()->IsLayerVisible( aItem->GetLayer() ) )
return false;
}
else
{
if( !board()->IsLayerVisible( aItem->GetLayer() ) )
return false;
}
return aItem->ViewGetLOD( aItem->GetLayer(), view() ) < view()->GetScale();
}