Default to SMD if we have an SMD pad

SMD pads indicate that the footprint can be used in PnP more often  than
the presence of THT indicate that it cannot.

Fixes https://gitlab.com/kicad/code/kicad/issues/13387
This commit is contained in:
Seth Hillbrand 2023-01-05 16:55:10 -08:00
parent 210bc6acf7
commit a6eb6d3228
1 changed files with 3 additions and 3 deletions

View File

@ -748,12 +748,12 @@ int FOOTPRINT::GetLikelyAttribute() const
} }
} }
if( tht_count > 0 )
return FP_THROUGH_HOLE;
if( smd_count > 0 ) if( smd_count > 0 )
return FP_SMD; return FP_SMD;
if( tht_count > 0 )
return FP_THROUGH_HOLE;
return 0; return 0;
} }