1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 04:53:12 +08:00

Fix formatting issues

This commit is contained in:
Dean Herbert 2023-01-18 17:33:14 +09:00
parent 788033e1b8
commit ecb4727aec
3 changed files with 9 additions and 6 deletions

View File

@ -491,12 +491,14 @@ namespace osu.Game.Screens.Edit.Compose.Components
if (snapProvider != null)
{
var currentSelectionPointPositions = movementBlueprints.Select(m => m.ScreenSpaceSelectionPoint).ToArray();
if (checkSnappingForNearbyObjects(distanceTraveled, movementBlueprintOriginalPositions, currentSelectionPointPositions))
return true;
var currentEndPointPositions = movementBlueprints.Where(m => m.ScreenSpaceSelectionPoint != m.ScreenSpaceEndPoint)
.Select(m => m.ScreenSpaceEndPoint)
.ToArray();
if (checkSnappingForNearbyObjects(distanceTraveled, movementBlueprintOriginalEndPositions, currentEndPointPositions))
return true;
}
@ -542,6 +544,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
if (SelectionHandler.HandleMovement(new MoveSelectionEvent<T>(movementBlueprints[i], delta)))
return true;
}
return false;
}