Don't add board-only footprints to the netlist (fixes back-annotation issue)

This commit is contained in:
Roberto Fernandez Bautista 2021-01-19 23:17:13 +00:00 committed by Seth Hillbrand
parent 4f0accb714
commit 74aa081b8a
1 changed files with 3 additions and 0 deletions

View File

@ -512,6 +512,9 @@ void PCB_EDIT_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail )
for( FOOTPRINT* footprint : this->GetBoard()->Footprints() ) for( FOOTPRINT* footprint : this->GetBoard()->Footprints() )
{ {
if( footprint->GetAttributes() & FP_BOARD_ONLY )
continue; // Don't add board-only footprints to the netlist
COMPONENT* component = new COMPONENT( footprint->GetFPID(), footprint->GetReference(), COMPONENT* component = new COMPONENT( footprint->GetFPID(), footprint->GetReference(),
footprint->GetValue(), footprint->GetPath() ); footprint->GetValue(), footprint->GetPath() );