mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Merge pull request #25539 from default0/fix-slider-drawing-with-snap
Fix freehand-drawn sliders with distance snap
This commit is contained in:
commit
63481e8e60
@ -175,6 +175,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
|||||||
if (controlPointCount > 2 || (controlPointCount == 2 && HitObject.Path.ControlPoints.Last() != cursor))
|
if (controlPointCount > 2 || (controlPointCount == 2 && HitObject.Path.ControlPoints.Last() != cursor))
|
||||||
return base.OnDragStart(e);
|
return base.OnDragStart(e);
|
||||||
|
|
||||||
|
bSplineBuilder.AddLinearPoint(Vector2.Zero);
|
||||||
bSplineBuilder.AddLinearPoint(ToLocalSpace(e.ScreenSpaceMouseDownPosition) - HitObject.Position);
|
bSplineBuilder.AddLinearPoint(ToLocalSpace(e.ScreenSpaceMouseDownPosition) - HitObject.Position);
|
||||||
state = SliderPlacementState.Drawing;
|
state = SliderPlacementState.Drawing;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user