CADSTAR PCB: Allow remapping all non-electrical layers

Fixes https://gitlab.com/kicad/code/kicad/-/issues/12196


(cherry picked from commit 6b349fdb0a)
This commit is contained in:
Roberto Fernandez Bautista 2022-08-14 22:23:59 +01:00
parent f637a820b6
commit 1005f75cdb
1 changed files with 2 additions and 8 deletions

View File

@ -623,14 +623,8 @@ void CADSTAR_PCB_ARCHIVE_LOADER::remapUnsureLayers()
{
LAYER* curLayer = &Assignments.Layerdefs.Layers.at( layerPair.first );
//Only remap layers that we aren't sure about
if( curLayer->Type == LAYER_TYPE::DOC
|| ( curLayer->Type == LAYER_TYPE::NONELEC
&& curLayer->SubType == LAYER_SUBTYPE::LAYERSUBTYPE_NONE )
|| ( curLayer->Type == LAYER_TYPE::NONELEC
&& curLayer->SubType == LAYER_SUBTYPE::LAYERSUBTYPE_ROUT )
|| ( curLayer->Type == LAYER_TYPE::NONELEC
&& curLayer->SubType == LAYER_SUBTYPE::LAYERSUBTYPE_CLEARANCE ) )
//Only remap documentation and non-electrical layers
if( curLayer->Type == LAYER_TYPE::NONELEC || curLayer->Type == LAYER_TYPE::DOC )
{
INPUT_LAYER_DESC iLdesc;
iLdesc.Name = curLayer->Name;