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:
parent
ffdf4deb59
commit
9a4f92dfd9
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue