1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 01:10:05 +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
Unverified
parent b4f63da048
commit 20280cd195
+1 -1
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));
}
}