CADSTAR PCB: Actually load the original route code as a KiCad NETCLASS

We weren't actually loading it into the design settings even though
everything else was already being correctly loaded.
This commit is contained in:
Roberto Fernandez Bautista 2021-10-07 22:03:15 +01:00
parent 034bc1e815
commit cb47bf25c0
1 changed files with 1 additions and 0 deletions

View File

@ -3800,6 +3800,7 @@ NETINFO_ITEM* CADSTAR_PCB_ARCHIVE_LOADER::getKiCadNet( const NET_ID& aCadstarNet
{
ROUTECODE rc = getRouteCode( csNet.RouteCodeID );
NETCLASSPTR netclass( new NETCLASS( rc.Name ) );
m_board->GetDesignSettings().GetNetClasses().Add( netclass );
netclass->SetTrackWidth( getKiCadLength( rc.OptimalWidth ) );
netInfo->SetNetClass( netclass );
m_netClassMap.insert( { csNet.RouteCodeID, netclass } );