mirror of
https://github.com/osukey/osukey.git
synced 2025-05-20 21:17:32 +09:00
Merge branch 'master' into legacy-combo-increase
This commit is contained in:
commit
dad4946481
@ -142,8 +142,10 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
|
|||||||
case NotifyCollectionChangedAction.Remove:
|
case NotifyCollectionChangedAction.Remove:
|
||||||
foreach (var point in e.OldItems.Cast<PathControlPoint>())
|
foreach (var point in e.OldItems.Cast<PathControlPoint>())
|
||||||
{
|
{
|
||||||
Pieces.RemoveAll(p => p.ControlPoint == point);
|
foreach (var piece in Pieces.Where(p => p.ControlPoint == point).ToArray())
|
||||||
Connections.RemoveAll(c => c.ControlPoint == point);
|
piece.RemoveAndDisposeImmediately();
|
||||||
|
foreach (var connection in Connections.Where(c => c.ControlPoint == point).ToArray())
|
||||||
|
connection.RemoveAndDisposeImmediately();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If removing before the end of the path,
|
// If removing before the end of the path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user