Pcbnew: honor footprint exclude from BOM setting.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/10297
This commit is contained in:
Wayne Stambaugh 2022-01-09 11:27:34 -05:00
parent 4ba1a1c291
commit f379c49084
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ void PCB_EDIT_FRAME::RecreateBOMFileFromBoard( wxCommandEvent& aEvent )
for( FOOTPRINT* footprint : GetBoard()->Footprints() )
{
if( footprint->GetAttributes() & FP_EXCLUDE_FROM_BOM )
continue;
bool valExist = false;
// try to find component in existing list