1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-11 01:47:45 +08:00

Fix sliders not being selectable if the body is hidden but the head is still visible

Closes https://github.com/ppy/osu/issues/31998.

Previously: 1648f2efa3,
https://github.com/ppy/osu/pull/31923.

Oh input handling, how I love ya.
This commit is contained in:
Bartłomiej Dach 2025-02-27 14:57:42 +01:00
parent 79b737bc27
commit 5b318edbfb
No known key found for this signature in database

View File

@ -626,7 +626,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos)
{
if (BodyPiece.ReceivePositionalInputAt(screenSpacePos) && (IsSelected || DrawableObject.Body.Alpha > 0))
if (BodyPiece.ReceivePositionalInputAt(screenSpacePos) && (IsSelected || DrawableObject.Body.Alpha > 0 || DrawableObject.HeadCircle.Alpha > 0))
return true;
if (ControlPointVisualiser == null)