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:
parent
487326a4c7
commit
80a3225bb2
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user