pcbnew: Synchonize net info when loading via python

When loading the load using the UI, netclasses and net info are
synchronized to the board object after parsing the file.  This needs to
happen automatically when loading the board via the Python interface as
well.

Fixes: lp:1806506
* https://bugs.launchpad.net/kicad/+bug/1806506
This commit is contained in:
Seth Hillbrand 2018-12-03 17:03:44 -08:00
parent af65c48979
commit 2a574c4f65
1 changed files with 5 additions and 0 deletions

View File

@ -78,7 +78,12 @@ BOARD* LoadBoard( wxString& aFileName, IO_MGR::PCB_FILE_T aFormat )
BOARD* brd = IO_MGR::Load( aFormat, aFileName );
if( brd )
{
brd->BuildConnectivity();
brd->BuildListOfNets();
brd->SynchronizeNetsAndNetClasses();
}
return brd;
}