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:
parent
1660eb3c15
commit
cc33e12125
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user