1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Only add valid placed components to selected collection on paste

This commit is contained in:
Dean Herbert 2023-02-20 20:02:43 +09:00
parent b68562b033
commit 43d33d45ca

View File

@ -455,11 +455,13 @@ namespace osu.Game.Overlays.SkinEditor
.OfType<ISerialisableDrawable>()
.ToArray();
foreach (var i in instances)
placeComponent(i, false);
SelectedComponents.Clear();
SelectedComponents.AddRange(instances);
foreach (var i in instances)
{
if (placeComponent(i, false))
SelectedComponents.Add(i);
}
changeHandler?.EndChange();
}