1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Fix dragging after one point already placed incorrectly entering drawing mode

This commit is contained in:
Dean Herbert 2023-11-21 15:16:40 +09:00
parent 1660eb3c15
commit cc33e12125
No known key found for this signature in database

View File

@ -171,7 +171,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
return base.OnDragStart(e);
// Only enter drawing mode if no additional control points have been placed.
if (HitObject.Path.ControlPoints.Count > 2)
int controlPointCount = HitObject.Path.ControlPoints.Count;
if (controlPointCount > 2 || (controlPointCount == 2 && HitObject.Path.ControlPoints.Last() != cursor))
return base.OnDragStart(e);
bSplineBuilder.AddLinearPoint(ToLocalSpace(e.ScreenSpaceMouseDownPosition) - HitObject.Position);