mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
Make sure all selected items get deleted
This commit is contained in:
parent
0ffde02f79
commit
0613388aaa
@ -305,7 +305,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
|
||||
protected void DeleteSelected()
|
||||
{
|
||||
DeleteItems(selectedBlueprints.Select(b => b.Item));
|
||||
DeleteItems(SelectedItems.ToArray());
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@ -352,6 +352,8 @@ namespace osu.Game.Screens.Edit
|
||||
var updates = batchPendingUpdates.ToArray();
|
||||
batchPendingUpdates.Clear();
|
||||
|
||||
foreach (var h in deletes) SelectedHitObjects.Remove(h);
|
||||
|
||||
foreach (var h in deletes) HitObjectRemoved?.Invoke(h);
|
||||
foreach (var h in inserts) HitObjectAdded?.Invoke(h);
|
||||
foreach (var h in updates) HitObjectUpdated?.Invoke(h);
|
||||
|
Loading…
Reference in New Issue
Block a user