mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Revert "Make SliderPath.ControlPoints read-only"
This reverts commit 3b88d94793
.
# Conflicts:
# osu.Game/Rulesets/Objects/SliderPath.cs
This commit is contained in:
@ -15,7 +15,7 @@ namespace osu.Game.Rulesets.Objects
|
||||
/// <summary>
|
||||
/// The control points of the path.
|
||||
/// </summary>
|
||||
public readonly ReadOnlyMemory<Vector2> ControlPoints;
|
||||
public readonly Vector2[] ControlPoints;
|
||||
|
||||
/// <summary>
|
||||
/// The type of path.
|
||||
@ -137,9 +137,9 @@ namespace osu.Game.Rulesets.Objects
|
||||
{
|
||||
end++;
|
||||
|
||||
if (i == ControlPoints.Length - 1 || ControlPoints.Span[i] == ControlPoints.Span[i + 1])
|
||||
if (i == ControlPoints.Length - 1 || ControlPoints[i] == ControlPoints[i + 1])
|
||||
{
|
||||
ReadOnlySpan<Vector2> cpSpan = ControlPoints.Span.Slice(start, end - start);
|
||||
ReadOnlySpan<Vector2> cpSpan = ControlPoints.AsSpan().Slice(start, end - start);
|
||||
|
||||
foreach (Vector2 t in calculateSubpath(cpSpan))
|
||||
if (calculatedPath.Count == 0 || calculatedPath.Last() != t)
|
||||
|
Reference in New Issue
Block a user