freerouter does not understand "mixed" layers, export mixed as signal

This commit is contained in:
Dick Hollenbeck 2014-01-20 13:11:42 -06:00
parent bf30114db8
commit aa451fb4d1
1 changed files with 9 additions and 10 deletions

View File

@ -1416,17 +1416,16 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR )
switch( aBoard->GetLayerType( pcbLayer2kicad[pcbNdx] ) )
{
default:
case LT_SIGNAL:
layerType = T_signal; break;
case LT_SIGNAL: layerType = T_signal; break;
case LT_POWER: layerType = T_power; break;
case LT_POWER:
layerType = T_power; break;
case LT_MIXED:
layerType = T_mixed; break;
case LT_JUMPER:
layerType = T_jumper; break;
#if 1 // Freerouter does not support type "mixed", only signal and power.
// Remap "mixed" to "signal".
case LT_MIXED: layerType = T_signal; break;
#else
case LT_MIXED: layerType = T_mixed; break;
#endif
case LT_JUMPER: layerType = T_jumper; break;
}
layer->layer_type = layerType;