mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +08:00
Fix blueprints not hiding when deleting elements
This commit is contained in:
parent
8d056ff38f
commit
cdef07b2ee
@ -20,7 +20,10 @@ namespace osu.Game.Skinning.Editor
|
|||||||
protected override void DeleteItems(IEnumerable<ISkinnableComponent> items)
|
protected override void DeleteItems(IEnumerable<ISkinnableComponent> items)
|
||||||
{
|
{
|
||||||
foreach (var i in items)
|
foreach (var i in items)
|
||||||
i.Hide();
|
{
|
||||||
|
((Drawable)i).Expire();
|
||||||
|
SelectedItems.Remove(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override IEnumerable<MenuItem> GetContextMenuItemsForSelection(IEnumerable<SelectionBlueprint<ISkinnableComponent>> selection)
|
protected override IEnumerable<MenuItem> GetContextMenuItemsForSelection(IEnumerable<SelectionBlueprint<ISkinnableComponent>> selection)
|
||||||
|
Loading…
Reference in New Issue
Block a user