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:
parent
f637a820b6
commit
1005f75cdb
|
@ -623,14 +623,8 @@ void CADSTAR_PCB_ARCHIVE_LOADER::remapUnsureLayers()
|
||||||
{
|
{
|
||||||
LAYER* curLayer = &Assignments.Layerdefs.Layers.at( layerPair.first );
|
LAYER* curLayer = &Assignments.Layerdefs.Layers.at( layerPair.first );
|
||||||
|
|
||||||
//Only remap layers that we aren't sure about
|
//Only remap documentation and non-electrical layers
|
||||||
if( curLayer->Type == LAYER_TYPE::DOC
|
if( curLayer->Type == LAYER_TYPE::NONELEC || 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 ) )
|
|
||||||
{
|
{
|
||||||
INPUT_LAYER_DESC iLdesc;
|
INPUT_LAYER_DESC iLdesc;
|
||||||
iLdesc.Name = curLayer->Name;
|
iLdesc.Name = curLayer->Name;
|
||||||
|
|
Loading…
Reference in New Issue