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:
parent
b68562b033
commit
43d33d45ca
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user