mirror of
https://github.com/ppy/osu
synced 2024-12-15 19:36:34 +00:00
Perform deletion directly via EditorBeatmap
This commit is contained in:
parent
a888d148b6
commit
f582c42bbd
@ -38,7 +38,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
private Drawable outline;
|
||||
|
||||
[Resolved(CanBeNull = true)]
|
||||
private IPlacementHandler placementHandler { get; set; }
|
||||
private EditorBeatmap editorBeatmap { get; set; }
|
||||
|
||||
public SelectionHandler()
|
||||
{
|
||||
@ -146,7 +146,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
private void deleteSelected()
|
||||
{
|
||||
foreach (var h in selectedBlueprints.ToList())
|
||||
placementHandler.Delete(h.HitObject);
|
||||
editorBeatmap.Remove(h.HitObject);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Loading…
Reference in New Issue
Block a user