Gerber file generation: fix incorrect aperFunction attribute for graphic items on edge cut layer.
Was NonConductor. Must be Profile.
This commit is contained in:
parent
187cd5aa09
commit
c7d636d560
|
@ -170,8 +170,8 @@ std::string GBR_APERTURE_METADATA::FormatAttribute( GBR_APERTURE_ATTRIB aAttribu
|
|||
attribute_string = "TA.AperFunction,Conductor";
|
||||
break;
|
||||
|
||||
case GBR_APERTURE_ATTRIB_CUTOUT: // print info associated to a outline
|
||||
attribute_string = "TA.AperFunction,CutOut";
|
||||
case GBR_APERTURE_ATTRIB_EDGECUT: // print info associated to a board outline
|
||||
attribute_string = "TA.AperFunction,Profile";
|
||||
break;
|
||||
|
||||
case GBR_APERTURE_ATTRIB_VIAPAD: // print info associated to a flashed via
|
||||
|
|
|
@ -82,7 +82,7 @@ public:
|
|||
GBR_APERTURE_ATTRIB_NONE, ///< uninitialized attribute
|
||||
GBR_APERTURE_ATTRIB_ETCHEDCMP, ///< aperture used for etched components
|
||||
GBR_APERTURE_ATTRIB_CONDUCTOR, ///< aperture used for connected items like tracks (not vias)
|
||||
GBR_APERTURE_ATTRIB_CUTOUT, ///< aperture used for board cutout
|
||||
GBR_APERTURE_ATTRIB_EDGECUT, ///< aperture used for board cutout
|
||||
GBR_APERTURE_ATTRIB_NONCONDUCTOR, ///< aperture used for not connected items (texts, outlines on copper)
|
||||
GBR_APERTURE_ATTRIB_VIAPAD, ///< aperture used for vias
|
||||
GBR_APERTURE_ATTRIB_COMPONENTPAD, ///< aperture used for through hole component on outer layer
|
||||
|
|
|
@ -475,7 +475,7 @@ void BRDITEMS_PLOTTER::Plot_1_EdgeModule( EDGE_MODULE* aEdge )
|
|||
}
|
||||
else if( aEdge->GetLayer() == Edge_Cuts ) // happens also when plotting copper layers
|
||||
{
|
||||
gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_NONCONDUCTOR );
|
||||
gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_EDGECUT );
|
||||
}
|
||||
|
||||
switch( type_trace )
|
||||
|
@ -729,7 +729,7 @@ void BRDITEMS_PLOTTER::PlotDrawSegment( DRAWSEGMENT* aSeg )
|
|||
bool isOnCopperLayer = ( m_layerMask & LSET::AllCuMask() ).any();
|
||||
|
||||
if( isOnCopperLayer && aSeg->GetLayer() == Edge_Cuts ) // can happens when plotting copper layers
|
||||
gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_NONCONDUCTOR );
|
||||
gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_EDGECUT );
|
||||
|
||||
switch( aSeg->GetShape() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue