Another go at supressing FOOTPRINT field on FOOTPRINT objects

This commit is contained in:
JamesJCode
2024-12-28 21:57:35 +00:00
parent 86bcf840c1
commit dfe0d6345b
23 changed files with 163 additions and 86 deletions
+2 -4
View File
@@ -111,10 +111,8 @@ void PlotInteractiveLayer( BOARD* aBoard, PLOTTER* aPlotter, const PCB_PLOT_PARA
_( "Footprint" ),
fp->GetFPID().GetUniStringLibItemName() ) );
for( int i = 0; i < fp->GetFieldCount(); i++ )
for( const PCB_FIELD* field : fp->GetFields() )
{
PCB_FIELD* field = fp->GetFields().at( i );
if( field->IsReference() || field->IsValue() )
continue;
@@ -947,7 +945,7 @@ void PlotSolderMaskLayer( BOARD *aBoard, PLOTTER* aPlotter, LSET aLayerMask,
// add shapes inflated by aMinThickness/2 in areas
footprint->TransformPadsToPolySet( areas, layer, inflate, maxError, ERROR_OUTSIDE );
for( const PCB_FIELD* field : footprint->Fields() )
for( const PCB_FIELD* field : footprint->GetFields() )
{
if( field->IsReference() && !itemplotter.GetPlotReference() )
continue;