1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Use static BEZIER instead of allocating new every time

This commit is contained in:
Bartłomiej Dach 2023-11-20 13:35:07 +09:00
parent 487326a4c7
commit 80a3225bb2
No known key found for this signature in database

View File

@ -230,7 +230,7 @@ namespace osu.Game.Rulesets.Objects.Legacy
if (input.Length > 1 && int.TryParse(input.Substring(1), out int degree) && degree > 0) if (input.Length > 1 && int.TryParse(input.Substring(1), out int degree) && degree > 0)
return PathType.BSpline(degree); return PathType.BSpline(degree);
return new PathType(SplineType.BSpline); return PathType.BEZIER;
case 'L': case 'L':
return PathType.LINEAR; return PathType.LINEAR;