1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-21 06:42:54 +08:00

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; private Drawable outline;
[Resolved(CanBeNull = true)] [Resolved(CanBeNull = true)]
private IPlacementHandler placementHandler { get; set; } private EditorBeatmap editorBeatmap { get; set; }
public SelectionHandler() public SelectionHandler()
{ {
@ -146,7 +146,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
private void deleteSelected() private void deleteSelected()
{ {
foreach (var h in selectedBlueprints.ToList()) foreach (var h in selectedBlueprints.ToList())
placementHandler.Delete(h.HitObject); editorBeatmap.Remove(h.HitObject);
} }
#endregion #endregion