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:
parent
210bc6acf7
commit
a6eb6d3228
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue