1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 10:07:36 +08:00

Fix blueprints not hiding when deleting elements

This commit is contained in:
Dean Herbert 2021-04-30 13:09:57 +09:00
parent 8d056ff38f
commit cdef07b2ee

View File

@ -20,7 +20,10 @@ namespace osu.Game.Skinning.Editor
protected override void DeleteItems(IEnumerable<ISkinnableComponent> items)
{
foreach (var i in items)
i.Hide();
{
((Drawable)i).Expire();
SelectedItems.Remove(i);
}
}
protected override IEnumerable<MenuItem> GetContextMenuItemsForSelection(IEnumerable<SelectionBlueprint<ISkinnableComponent>> selection)