1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

fix The last slider point has effect on previous inherited

This commit is contained in:
OliBomby 2023-08-16 16:44:08 +02:00
parent 4e96853c75
commit 8686b6b1e6

View File

@ -70,7 +70,13 @@ namespace osu.Game.Database
hitObject.StartTime = Math.Floor(hitObject.StartTime);
if (hitObject is not IHasPath hasPath || BezierConverter.CountSegments(hasPath.Path.ControlPoints) <= 1) continue;
if (hitObject is not IHasPath hasPath) continue;
// Make sure the last control point is inherit type
if (hasPath.Path.ControlPoints.Count > 1)
hasPath.Path.ControlPoints[^1].Type = null;
if (BezierConverter.CountSegments(hasPath.Path.ControlPoints) <= 1) continue;
var newControlPoints = BezierConverter.ConvertToModernBezier(hasPath.Path.ControlPoints);