mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 14:40:11 +00:00
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 );
|
||||
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 } );
|
||||
|
Loading…
Reference in New Issue
Block a user