1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Remove unnecessary precondition check and disallow vertical catch flips for now

This commit is contained in:
Dean Herbert 2022-01-06 14:39:00 +09:00
parent ee24713002
commit 5c0494f3ba

View File

@ -54,7 +54,11 @@ namespace osu.Game.Rulesets.Catch.Edit
public override bool HandleFlip(Direction direction, bool flipOverOrigin)
{
if (SelectedItems.Count == 0 && !flipOverOrigin)
if (SelectedItems.Count == 0)
return false;
// This could be implemented in the future if there's a requirement for it.
if (direction == Direction.Vertical)
return false;
var selectionRange = CatchHitObjectUtils.GetPositionRange(SelectedItems);