ADDED: Pcbnew, add "pin function" (pin name in eeschema) to pads.
The pin name defined in Eeschema is now available as pad info. Useful for the board designer (the pin function is displayed in the message panel). Needed for the Gerber P&P files.
This commit is contained in:
@@ -79,7 +79,14 @@ void BRDITEMS_PLOTTER::PlotPad( D_PAD* aPad, COLOR4D aColor, EDA_DRAW_MODE_T aPl
|
||||
gbr_metadata.SetCopper( true );
|
||||
|
||||
if( isOnExternalCopperLayer )
|
||||
gbr_metadata.SetPadName( aPad->GetName() );
|
||||
{
|
||||
const bool useUTF8 = false;
|
||||
const bool useQuoting = false;
|
||||
gbr_metadata.SetPadName( aPad->GetName(), useUTF8, useQuoting );
|
||||
|
||||
if( !aPad->GetName().IsEmpty() )
|
||||
gbr_metadata.SetPadPinFunction( aPad->GetPinFunction(), useUTF8, useQuoting );
|
||||
}
|
||||
|
||||
gbr_metadata.SetNetName( aPad->GetNetname() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user