Fix SliderPath not handling Clear correctly

This commit is contained in:
Dean Herbert
2020-10-09 06:31:59 +09:00
parent 85b33fffd0
commit eacc7dca9a
2 changed files with 7 additions and 0 deletions

View File

@ -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;