mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 09:53:22 +08:00
Fix drag select crashing
This commit is contained in:
parent
32e8d93596
commit
5426432e46
@ -72,7 +72,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
|||||||
/// <param name="rect">The rectangle to perform a selection on in screen-space coordinates.</param>
|
/// <param name="rect">The rectangle to perform a selection on in screen-space coordinates.</param>
|
||||||
public void Select(RectangleF rect)
|
public void Select(RectangleF rect)
|
||||||
{
|
{
|
||||||
foreach (var mask in aliveMasks)
|
foreach (var mask in aliveMasks.ToList())
|
||||||
{
|
{
|
||||||
if (mask.IsPresent && rect.Contains(mask.SelectionPoint))
|
if (mask.IsPresent && rect.Contains(mask.SelectionPoint))
|
||||||
mask.Select();
|
mask.Select();
|
||||||
|
Loading…
Reference in New Issue
Block a user