mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
fix The last slider point has effect on previous inherited
This commit is contained in:
parent
4e96853c75
commit
8686b6b1e6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user