Don't test forbidden footprint layers in board editor

Fixes https://gitlab.com/kicad/code/kicad/-/issues/5847
This commit is contained in:
Jon Evans 2020-10-01 18:34:17 -04:00
parent 4a17205e76
commit b369506697
1 changed files with 1 additions and 1 deletions

View File

@ -1354,7 +1354,7 @@ void APPEARANCE_CONTROLS::rebuildLayers()
wxASSERT( layId >= 0 && layId < PCB_LAYER_ID_COUNT );
if( LSET::ForbiddenFootprintLayers().test( layId ) )
if( m_isFpEditor && LSET::ForbiddenFootprintLayers().test( layId ) )
{
static_cast<BITMAP_TOGGLE*>( btn )->SetValue( !isVisible );
return;