mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Fix freehand-drawn sliders with distance snap
This commit is contained in:
parent
f1f820bec3
commit
f7fce1d714
@ -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);
|
||||||
|
|
||||||
|
HitObject.Position = ToLocalSpace(e.ScreenSpaceMouseDownPosition);
|
||||||
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