Ensure that all pads with holes have alts

Alternate shapes for holes that are fallback clearance are needed in
case we have missing copper on any layer

Fixes https://gitlab.com/kicad/code/kicad/issues/5233
This commit is contained in:
Seth Hillbrand 2020-08-20 21:49:40 -07:00
parent ffdf4deb59
commit 9a4f92dfd9
1 changed files with 4 additions and 1 deletions

View File

@ -618,9 +618,12 @@ std::unique_ptr<PNS::SOLID> PNS_KICAD_IFACE_BASE::syncPad( D_PAD* aPad )
std::unique_ptr< PNS::SOLID > solid( new PNS::SOLID );
if( aPad->GetAttribute() == PAD_ATTRIB_STANDARD )
if( aPad->GetAttribute() == PAD_ATTRIB_STANDARD || PAD_ATTRIB_HOLE_NOT_PLATED )
solid->SetAlternateShape( aPad->GetEffectiveHoleShape()->Clone() );
if( aPad->GetAttribute() == PAD_ATTRIB_HOLE_NOT_PLATED )
solid->SetRoutable( false );
solid->SetLayers( layers );
solid->SetNet( aPad->GetNetCode() );
solid->SetParent( aPad );