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:
parent
034bc1e815
commit
cb47bf25c0
|
@ -3800,6 +3800,7 @@ NETINFO_ITEM* CADSTAR_PCB_ARCHIVE_LOADER::getKiCadNet( const NET_ID& aCadstarNet
|
||||||
{
|
{
|
||||||
ROUTECODE rc = getRouteCode( csNet.RouteCodeID );
|
ROUTECODE rc = getRouteCode( csNet.RouteCodeID );
|
||||||
NETCLASSPTR netclass( new NETCLASS( rc.Name ) );
|
NETCLASSPTR netclass( new NETCLASS( rc.Name ) );
|
||||||
|
m_board->GetDesignSettings().GetNetClasses().Add( netclass );
|
||||||
netclass->SetTrackWidth( getKiCadLength( rc.OptimalWidth ) );
|
netclass->SetTrackWidth( getKiCadLength( rc.OptimalWidth ) );
|
||||||
netInfo->SetNetClass( netclass );
|
netInfo->SetNetClass( netclass );
|
||||||
m_netClassMap.insert( { csNet.RouteCodeID, netclass } );
|
m_netClassMap.insert( { csNet.RouteCodeID, netclass } );
|
||||||
|
|
Loading…
Reference in New Issue