mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Avoid LINQ in update
This commit is contained in:
@ -328,10 +328,10 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Move the rectangle to cover the items
|
// Move the rectangle to cover the items
|
||||||
RectangleF selectionRect = ToLocalSpace(selectedBlueprints.First().SelectionQuad).AABBFloat;
|
RectangleF selectionRect = ToLocalSpace(selectedBlueprints[0].SelectionQuad).AABBFloat;
|
||||||
|
|
||||||
foreach (var blueprint in selectedBlueprints.Skip(1))
|
for (int i = 1; i < selectedBlueprints.Count; i++)
|
||||||
selectionRect = RectangleF.Union(selectionRect, ToLocalSpace(blueprint.SelectionQuad).AABBFloat);
|
selectionRect = RectangleF.Union(selectionRect, ToLocalSpace(selectedBlueprints[i].SelectionQuad).AABBFloat);
|
||||||
|
|
||||||
selectionRect = selectionRect.Inflate(5f);
|
selectionRect = selectionRect.Inflate(5f);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user