1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-07 20:12:54 +08:00

Do not double up first control point of path

This commit is contained in:
Bartłomiej Dach 2025-01-31 09:01:42 +01:00
parent b4f63da048
commit 20280cd195
No known key found for this signature in database

View File

@ -141,7 +141,7 @@ namespace osu.Game.Database
// however, the Bézier path as output by the converter has multiple segments.
// `LegacyBeatmapEncoder` will attempt to encode this by emitting per-control-point curve type specs which don't do anything for stable.
// instead, stable expects control points that start a segment to be present in the path twice in succession.
if (convertedPoint.Type == PathType.BEZIER)
if (convertedPoint.Type == PathType.BEZIER && i > 0)
hasPath.Path.ControlPoints.Add(new PathControlPoint(position));
}
}