diff --git a/pcbnew/exporters/step/step_pcb_model.cpp b/pcbnew/exporters/step/step_pcb_model.cpp index bf69ba282b..ef33cfacb8 100644 --- a/pcbnew/exporters/step/step_pcb_model.cpp +++ b/pcbnew/exporters/step/step_pcb_model.cpp @@ -806,7 +806,10 @@ bool STEP_PCB_MODEL::MakeShapes( std::vector& aShapes, const SHAPE lastPt = firstPt; } - if( addSegment( lastPt, seg.B ) ) + if( lastPt != seg.A ) + addSegment( lastPt, seg.A ); + + if( addSegment( seg.A, seg.B ) ) lastPt = seg.B; }