mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Remove automatic slider path offsetting
This commit is contained in:
@ -16,12 +16,6 @@ namespace osu.Game.Rulesets.Objects
|
||||
{
|
||||
public class SliderPath
|
||||
{
|
||||
/// <summary>
|
||||
/// Invoked when the offset of the path changes.
|
||||
/// The provided value indicates the offset, and should be used to re-calculate the position of the containing drawable.
|
||||
/// </summary>
|
||||
public event Action<Vector2> OffsetChanged;
|
||||
|
||||
/// <summary>
|
||||
/// The current version of this <see cref="SliderPath"/>. Updated when any change to the path occurs.
|
||||
/// </summary>
|
||||
@ -66,20 +60,6 @@ namespace osu.Game.Rulesets.Objects
|
||||
foreach (var c in items)
|
||||
c.Changed -= invalidate;
|
||||
|
||||
// Make all control points relative to the first one
|
||||
if (ControlPoints.Count > 0)
|
||||
{
|
||||
Vector2 first = ControlPoints[0].Position.Value;
|
||||
|
||||
if (first != Vector2.Zero)
|
||||
{
|
||||
foreach (var c in ControlPoints)
|
||||
c.Position.Value -= first;
|
||||
|
||||
OffsetChanged?.Invoke(first);
|
||||
}
|
||||
}
|
||||
|
||||
invalidate();
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user