mirror of https://github.com/ppy/osu
Carry over the previous path type
This commit is contained in:
parent
0af6d77192
commit
f64b2095bf
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue