Gerber object attribute: avoid trying to guess if a SMD pad is a BGA pad.

Previously, if a SMD pad was round, itb was seen as BGA pad.
But this is not always true. so use always SMD PAD attribute,
until an explicit BGA pad attribute is added in Pcbnew
This commit is contained in:
jean-pierre charras 2019-12-11 08:52:31 +01:00
parent 90d2ea5dd5
commit e57fe9d173
1 changed files with 5 additions and 3 deletions

View File

@ -142,9 +142,11 @@ void BRDITEMS_PLOTTER::PlotPad( D_PAD* aPad, COLOR4D aColor, EDA_DRAW_MODE_T aPl
break;
case PAD_ATTRIB_SMD: // SMD pads (One external copper layer only) with solder paste
if( aPad->GetShape() == PAD_SHAPE_CIRCLE ) // perhaps a BGA pad
gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_BGAPAD_CUDEF );
else
// If round shape, perhaps a BGA pad but not sure: so use currently SMDPAD attribute,
// until an explicit BGA pad attribute is added in Pcbnew
// if( aPad->GetShape() == PAD_SHAPE_CIRCLE )
// gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_BGAPAD_CUDEF );
// else
gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_SMDPAD_CUDEF );
break;
}