Don't attempt to write zone-connection-layers to footprint library.
Fixes https://gitlab.com/kicad/code/kicad/issues/12857
This commit is contained in:
parent
ece752d5a2
commit
1d7c5dce70
|
@ -1603,6 +1603,8 @@ void PCB_PLUGIN::format( const PAD* aPad, int aNestLevel ) const
|
|||
if( aPad->GetKeepTopBottom() )
|
||||
m_out->Print( 0, " (keep_end_layers)" );
|
||||
|
||||
if( board ) // Will be nullptr in footprint library
|
||||
{
|
||||
m_out->Print( 0, " (zone_layer_connections" );
|
||||
|
||||
for( LSEQ cu = board->GetEnabledLayers().CuStack(); cu; ++cu )
|
||||
|
@ -1614,6 +1616,7 @@ void PCB_PLUGIN::format( const PAD* aPad, int aNestLevel ) const
|
|||
m_out->Print( 0, ")" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Output the radius ratio for rounded and chamfered rect pads
|
||||
if( aPad->GetShape() == PAD_SHAPE::ROUNDRECT || aPad->GetShape() == PAD_SHAPE::CHAMFERED_RECT)
|
||||
|
|
Loading…
Reference in New Issue