mirror of
https://github.com/ppy/osu
synced 2025-04-01 14:38:37 +00:00
Fix selecting underneath selected blueprints (#6719)
Fix selecting underneath selected blueprints Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
commit
f0a6fbdeb0
@ -254,6 +254,12 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
{
|
{
|
||||||
Debug.Assert(!clickSelectionBegan);
|
Debug.Assert(!clickSelectionBegan);
|
||||||
|
|
||||||
|
// If a select blueprint is already hovered, disallow changes in selection.
|
||||||
|
// Exception is made when holding control, as deselection should still be allowed.
|
||||||
|
if (!e.CurrentState.Keyboard.ControlPressed &&
|
||||||
|
selectionHandler.SelectedBlueprints.Any(s => s.IsHovered))
|
||||||
|
return;
|
||||||
|
|
||||||
foreach (SelectionBlueprint blueprint in selectionBlueprints.AliveBlueprints)
|
foreach (SelectionBlueprint blueprint in selectionBlueprints.AliveBlueprints)
|
||||||
{
|
{
|
||||||
if (blueprint.IsHovered)
|
if (blueprint.IsHovered)
|
||||||
|
Loading…
Reference in New Issue
Block a user