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:
parent
a888d148b6
commit
f582c42bbd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user