Ensure newly added pads are counted
When adding a new footprint, don't delete the single-pad nets until you check for the net being added as part of the footprint Fixes https://gitlab.com/kicad/code/kicad/issues/9053
This commit is contained in:
parent
243631a095
commit
f14e5b61b3
|
@ -788,6 +788,15 @@ bool BOARD_NETLIST_UPDATER::deleteSinglePadNets()
|
|||
|
||||
std::vector<PAD*> padlist = m_board->GetPads();
|
||||
|
||||
// Add the new pads
|
||||
for( FOOTPRINT* fp : m_addedFootprints)
|
||||
{
|
||||
for( PAD* pad : fp->Pads() )
|
||||
{
|
||||
padlist.push_back( pad );
|
||||
}
|
||||
}
|
||||
|
||||
// Sort pads by netlist name
|
||||
std::sort( padlist.begin(), padlist.end(),
|
||||
[ this ]( PAD* a, PAD* b ) -> bool
|
||||
|
|
Loading…
Reference in New Issue