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:
parent
4ab7ef9af9
commit
e38075c4ef
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user