mirror of https://github.com/ppy/osu
Updated canMerge check to be totally accurate
This commit is contained in:
parent
2e5770be4e
commit
44916c51d7
|
@ -452,6 +452,6 @@ protected override IEnumerable<MenuItem> GetContextMenuItemsForSelection(IEnumer
|
|||
private bool canMerge(IReadOnlyList<OsuHitObject> objects) =>
|
||||
objects.Count > 1
|
||||
&& (objects.Any(h => h is Slider)
|
||||
|| Precision.DefinitelyBigger(Vector2.DistanceSquared(objects[0].Position, objects[1].Position), 1));
|
||||
|| objects.Zip(objects.Skip(1), (h1, h2) => Precision.DefinitelyBigger(Vector2.DistanceSquared(h1.Position, h2.Position), 1)).Any(x => x));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue