Don't look at project layer visibilities for footprint editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/6873
This commit is contained in:
parent
97a99beef5
commit
35a5781f68
|
@ -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
|
// All other items are selected only if the layer on which they exist is visible
|
||||||
return board()->IsLayerVisible( aItem->GetLayer() )
|
if( m_isFootprintEditor )
|
||||||
&& aItem->ViewGetLOD( aItem->GetLayer(), view() ) < view()->GetScale();
|
{
|
||||||
|
if( !view()->IsLayerVisible( aItem->GetLayer() ) )
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if( !board()->IsLayerVisible( aItem->GetLayer() ) )
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return aItem->ViewGetLOD( aItem->GetLayer(), view() ) < view()->GetScale();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue