export D356 netlist: fix incorrect id for pads type connectors.

these pads are similar to SMD pads and should have the same id.
Fixes #10694
https://gitlab.com/kicad/code/kicad/issues/10694
This commit is contained in:
jean-pierre charras 2022-01-31 19:53:02 +01:00
parent 7b01530eca
commit c494274b2e
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,8 @@ static void build_pad_testpoints( BOARD *aPcb, std::vector <D356_RECORD>& aRecor
const VECTOR2I& drill = pad->GetDrillSize(); const VECTOR2I& drill = pad->GetDrillSize();
rk.drill = std::min( drill.x, drill.y ); rk.drill = std::min( drill.x, drill.y );
rk.hole = (rk.drill != 0); rk.hole = (rk.drill != 0);
rk.smd = pad->GetAttribute() == PAD_ATTRIB::SMD; rk.smd = pad->GetAttribute() == PAD_ATTRIB::SMD
|| pad->GetAttribute() == PAD_ATTRIB::CONN;
rk.mechanical = ( pad->GetAttribute() == PAD_ATTRIB::NPTH ); rk.mechanical = ( pad->GetAttribute() == PAD_ATTRIB::NPTH );
rk.x_location = pad->GetPosition().x - origin.x; rk.x_location = pad->GetPosition().x - origin.x;
rk.y_location = origin.y - pad->GetPosition().y; rk.y_location = origin.y - pad->GetPosition().y;