mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:43:20 +08:00
Fix SliderPath not handling Clear correctly
This commit is contained in:
parent
85b33fffd0
commit
eacc7dca9a
@ -57,6 +57,7 @@ namespace osu.Game.Rulesets.Objects
|
||||
c.Changed += invalidate;
|
||||
break;
|
||||
|
||||
case NotifyCollectionChangedAction.Reset:
|
||||
case NotifyCollectionChangedAction.Remove:
|
||||
foreach (var c in args.OldItems.Cast<PathControlPoint>())
|
||||
c.Changed -= invalidate;
|
||||
|
@ -159,6 +159,12 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
/// <returns>Whether any <see cref="DrawableHitObject"/>s could be flipped.</returns>
|
||||
public virtual bool HandleFlip(Direction direction) => false;
|
||||
|
||||
/// <summary>
|
||||
/// Handles the selected <see cref="DrawableHitObject"/>s being reversed pattern-wise.
|
||||
/// </summary>
|
||||
/// <returns>Whether any <see cref="DrawableHitObject"/>s could be reversed.</returns>
|
||||
public virtual bool HandleReverse() => false;
|
||||
|
||||
public bool OnPressed(PlatformAction action)
|
||||
{
|
||||
switch (action.ActionMethod)
|
||||
|
Loading…
Reference in New Issue
Block a user