pcbnew: Add Eagle milling layer to edge_cuts

The Eagle milling layer (46) is valid for cutouts on the board.

Fixes: lp:1791284
* https://bugs.launchpad.net/kicad/+bug/1791284
This commit is contained in:
Seth Hillbrand 2018-09-08 06:57:38 -07:00
parent c68ad411ff
commit c9fc20c54e
1 changed files with 2 additions and 1 deletions

View File

@ -2172,7 +2172,9 @@ PCB_LAYER_ID EAGLE_PLUGIN::kicad_layer( int aEagleLayer ) const
switch( aEagleLayer )
{
// Eagle says "Dimension" layer, but it's for board perimeter
case EAGLE_LAYER::MILLING: kiLayer = Edge_Cuts; break;
case EAGLE_LAYER::DIMENSION: kiLayer = Edge_Cuts; break;
case EAGLE_LAYER::TPLACE: kiLayer = F_SilkS; break;
case EAGLE_LAYER::BPLACE: kiLayer = B_SilkS; break;
case EAGLE_LAYER::TNAMES: kiLayer = F_SilkS; break;
@ -2208,7 +2210,6 @@ PCB_LAYER_ID EAGLE_PLUGIN::kicad_layer( int aEagleLayer ) const
case EAGLE_LAYER::BKEEPOUT:
case EAGLE_LAYER::TTEST:
case EAGLE_LAYER::BTEST:
case EAGLE_LAYER::MILLING:
case EAGLE_LAYER::HOLES:
default:
// some layers do not map to KiCad