Do not re-number aperture pads

Aperture pads do not have numbers, so reserving space for them will
cause the actual numbered pads to become out of order

(cherry picked from commit d3334ed9f0)
This commit is contained in:
Seth Hillbrand 2024-03-01 13:03:37 -08:00
parent bec70ff39d
commit 99ac73630a
1 changed files with 6 additions and 1 deletions

View File

@ -394,7 +394,12 @@ int PAD_TOOL::EnumeratePads( const TOOL_EVENT& aEvent )
collector.Collect( board(), { PCB_PAD_T }, testpoint, guide );
for( int i = 0; i < collector.GetCount(); ++i )
selectedPads.push_back( static_cast<PAD*>( collector[i] ) );
{
PAD* pad = static_cast<PAD*>( collector[i] );
if( !pad->IsAperturePad() )
selectedPads.push_back( pad );
}
}
selectedPads.unique();