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:
parent
788033e1b8
commit
ecb4727aec
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user