1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 16:12:54 +08:00

Don't reselect already selected items in SelectAll

This commit is contained in:
ekrctb 2022-10-07 10:46:07 +09:00
parent 0ade049252
commit 6164e0896a
2 changed files with 2 additions and 4 deletions

View File

@ -131,8 +131,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected override void SelectAll()
{
Composer.Playfield.KeepAllAlive();
SelectedItems.Clear();
SelectedItems.AddRange(Beatmap.HitObjects);
SelectedItems.AddRange(Beatmap.HitObjects.Except(SelectedItems).ToArray());
}
protected override void OnBlueprintSelected(SelectionBlueprint<HitObject> blueprint)

View File

@ -119,8 +119,7 @@ namespace osu.Game.Skinning.Editor
protected override void SelectAll()
{
SelectedItems.Clear();
SelectedItems.AddRange(targetComponents.SelectMany(list => list));
SelectedItems.AddRange(targetComponents.SelectMany(list => list).Except(SelectedItems).ToArray());
}
/// <summary>