Don't number aperture pads.
Fixes: lp:1781760 * https://bugs.launchpad.net/kicad/+bug/1781760
This commit is contained in:
parent
f79ca271e3
commit
4618c64213
|
@ -99,12 +99,13 @@ void ARRAY_CREATOR::Invoke()
|
|||
// implicit numbering by incrementing the items during creation
|
||||
if( new_item && array_opts->NumberingStartIsSpecified() )
|
||||
{
|
||||
// Renumber pads. Only new pad number renumbering has meaning,
|
||||
// in the footprint editor.
|
||||
// Renumber non-aperture pads.
|
||||
if( new_item->Type() == PCB_PAD_T )
|
||||
{
|
||||
const wxString padName = array_opts->GetItemNumber( ptN );
|
||||
static_cast<D_PAD*>( new_item )->SetName( padName );
|
||||
D_PAD* pad = static_cast<D_PAD*>( new_item );
|
||||
|
||||
if( !pad->IsAperturePad() )
|
||||
pad->SetName( array_opts->GetItemNumber( ptN ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -399,6 +399,7 @@ public:
|
|||
|
||||
void SetLayerSet( LSET aLayerMask ) { m_layerMask = aLayerMask; }
|
||||
LSET GetLayerSet() const override { return m_layerMask; }
|
||||
bool IsAperturePad() const { return ( m_layerMask & LSET::AllCuMask() ).none(); }
|
||||
|
||||
void SetAttribute( PAD_ATTR_T aAttribute );
|
||||
PAD_ATTR_T GetAttribute() const { return m_Attribute; }
|
||||
|
|
Loading…
Reference in New Issue