Gerber files: Enable net attributes options in plot Gerber dlg and fix net attribute for "no net" tracks and vias (netcode <= 0).
This commit is contained in:
@@ -459,6 +459,10 @@ void PlotStandardLayer( BOARD *aBoard, PLOTTER* aPlotter,
|
||||
if( diameter <= 0 )
|
||||
continue;
|
||||
|
||||
// Some vias can be not connected (no net).
|
||||
// Set the m_NotInNet for these vias to force a empty net name in gerber file
|
||||
gbr_metadata.m_NetlistMetadata.m_NotInNet = Via->GetNetname().IsEmpty();
|
||||
|
||||
gbr_metadata.SetNetName( Via->GetNetname() );
|
||||
|
||||
EDA_COLOR_T color = aBoard->GetVisibleElementColor(VIAS_VISIBLE + Via->GetViaType());
|
||||
@@ -481,6 +485,10 @@ void PlotStandardLayer( BOARD *aBoard, PLOTTER* aPlotter,
|
||||
if( !aLayerMask[track->GetLayer()] )
|
||||
continue;
|
||||
|
||||
// Some track segments can be not connected (no net).
|
||||
// Set the m_NotInNet for these segments to force a empty net name in gerber file
|
||||
gbr_metadata.m_NetlistMetadata.m_NotInNet = track->GetNetname().IsEmpty();
|
||||
|
||||
gbr_metadata.SetNetName( track->GetNetname() );
|
||||
int width = track->GetWidth() + itemplotter.getFineWidthAdj();
|
||||
aPlotter->SetColor( itemplotter.getColor( track->GetLayer() ) );
|
||||
|
||||
Reference in New Issue
Block a user