Pcbnew: honor footprint exclude from BOM setting.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/10297

(cherry picked from commit f379c49084)
This commit is contained in:
Wayne Stambaugh 2022-01-09 11:27:34 -05:00
parent a91f807e13
commit bbf00e0461
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