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:
parent
0ade049252
commit
6164e0896a
@ -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)
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user