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:
parent
af65c48979
commit
2a574c4f65
|
@ -78,7 +78,12 @@ BOARD* LoadBoard( wxString& aFileName, IO_MGR::PCB_FILE_T aFormat )
|
||||||
BOARD* brd = IO_MGR::Load( aFormat, aFileName );
|
BOARD* brd = IO_MGR::Load( aFormat, aFileName );
|
||||||
|
|
||||||
if( brd )
|
if( brd )
|
||||||
|
{
|
||||||
brd->BuildConnectivity();
|
brd->BuildConnectivity();
|
||||||
|
brd->BuildListOfNets();
|
||||||
|
brd->SynchronizeNetsAndNetClasses();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return brd;
|
return brd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue