1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 16:13:34 +08:00

Fix freehand-drawn sliders with distance snap

This commit is contained in:
cs 2023-11-22 09:55:32 +01:00
parent f1f820bec3
commit f7fce1d714

View File

@ -175,6 +175,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
if (controlPointCount > 2 || (controlPointCount == 2 && HitObject.Path.ControlPoints.Last() != cursor))
return base.OnDragStart(e);
HitObject.Position = ToLocalSpace(e.ScreenSpaceMouseDownPosition);
bSplineBuilder.AddLinearPoint(ToLocalSpace(e.ScreenSpaceMouseDownPosition) - HitObject.Position);
state = SliderPlacementState.Drawing;
return true;