1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Use PlacementState to check juice stream placement

This commit is contained in:
Dylan Nantz 2023-01-13 09:37:23 -05:00
parent 4ab7ef9af9
commit e38075c4ef
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ namespace osu.Game.Rulesets.Catch.Edit
if (EditorBeatmap.PlacementObject.Value is JuiceStream)
{
// Juice stream path is not subject to snapping.
if (((JuiceStream)EditorBeatmap.PlacementObject.Value).Distance != 0)
if (BlueprintContainer.currentPlacement.PlacementActive is PlacementBlueprint.PlacementState.Active)
return null;
}

View File

@ -35,7 +35,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected new EditorSelectionHandler SelectionHandler => (EditorSelectionHandler)base.SelectionHandler;
private PlacementBlueprint currentPlacement;
public PlacementBlueprint currentPlacement { get; private set; }
/// <remarks>
/// Positional input must be received outside the container's bounds,