Perform deletion directly via EditorBeatmap

This commit is contained in:
Dean Herbert 2020-01-21 18:56:09 +09:00
parent a888d148b6
commit f582c42bbd

View File

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