Carry over the previous path type

This commit is contained in:
Naxess 2021-04-09 11:04:00 +02:00
parent 0af6d77192
commit f64b2095bf
1 changed files with 2 additions and 2 deletions

View File

@ -169,11 +169,11 @@ private void updatePathType(PathControlPointPiece piece, PathType? type)
case PathType.PerfectCurve:
// Can't always create a circular arc out of 4 or more points,
// so we split the segment into one 3-point circular arc segment
// and one bezier segment.
// and one segment of the previous type.
int thirdPointIndex = indexInSegment + 2;
if (piece.PointsInSegment.Count > thirdPointIndex + 1)
piece.PointsInSegment[thirdPointIndex].Type.Value = PathType.Bezier;
piece.PointsInSegment[thirdPointIndex].Type.Value = piece.PointsInSegment[0].Type.Value;
break;
}