STEP export: build a segment from last point for segment case as well.

https://gitlab.com/kicad/code/kicad/-/issues/16807
This commit is contained in:
Alex Shvartzkop 2024-01-29 19:59:41 +03:00
parent b12d0dfd67
commit 3ed196859f
1 changed files with 4 additions and 1 deletions

View File

@ -806,7 +806,10 @@ bool STEP_PCB_MODEL::MakeShapes( std::vector<TopoDS_Shape>& aShapes, const SHAPE
lastPt = firstPt; lastPt = firstPt;
} }
if( addSegment( lastPt, seg.B ) ) if( lastPt != seg.A )
addSegment( lastPt, seg.A );
if( addSegment( seg.A, seg.B ) )
lastPt = seg.B; lastPt = seg.B;
} }