1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:33:20 +08:00

fix the linear segment

This commit is contained in:
OliBomby 2023-12-03 21:13:27 +01:00
parent ba2cc0243c
commit 34b5264616

View File

@ -329,7 +329,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
continue;
// Where possible, we can use the simpler LINEAR path type.
PathType? pathType = pointsInSegment == 1 ? PathType.LINEAR : PathType.BSpline(3);
PathType? pathType = pointsInSegment == 2 ? PathType.LINEAR : PathType.BSpline(3);
// Linear segments can be combined, as two adjacent linear sections are computationally the same as one with the points combined.
if (lastPathType == pathType && lastPathType == PathType.LINEAR)