mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Make sure all selected items get deleted
This commit is contained in:
@ -305,7 +305,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
|
|
||||||
protected void DeleteSelected()
|
protected void DeleteSelected()
|
||||||
{
|
{
|
||||||
DeleteItems(selectedBlueprints.Select(b => b.Item));
|
DeleteItems(SelectedItems.ToArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -352,6 +352,8 @@ namespace osu.Game.Screens.Edit
|
|||||||
var updates = batchPendingUpdates.ToArray();
|
var updates = batchPendingUpdates.ToArray();
|
||||||
batchPendingUpdates.Clear();
|
batchPendingUpdates.Clear();
|
||||||
|
|
||||||
|
foreach (var h in deletes) SelectedHitObjects.Remove(h);
|
||||||
|
|
||||||
foreach (var h in deletes) HitObjectRemoved?.Invoke(h);
|
foreach (var h in deletes) HitObjectRemoved?.Invoke(h);
|
||||||
foreach (var h in inserts) HitObjectAdded?.Invoke(h);
|
foreach (var h in inserts) HitObjectAdded?.Invoke(h);
|
||||||
foreach (var h in updates) HitObjectUpdated?.Invoke(h);
|
foreach (var h in updates) HitObjectUpdated?.Invoke(h);
|
||||||
|
Reference in New Issue
Block a user