Don't test forbidden footprint layers in board editor
Fixes https://gitlab.com/kicad/code/kicad/-/issues/5847
This commit is contained in:
parent
4a17205e76
commit
b369506697
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue