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

Use begin/end placement methods

This commit is contained in:
smoogipoo 2018-10-17 18:20:39 +09:00
parent a491fb42df
commit 8fa783b4c5

View File

@ -113,6 +113,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks
private void beginCurve()
{
BeginPlacement();
HitObject.StartTime = EditorClock.CurrentTime;
setState(PlacementState.Body);
}
@ -124,7 +126,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks
HitObject.CurveType = HitObject.ControlPoints.Count > 2 ? CurveType.Bezier : CurveType.Linear;
HitObject.Distance = segments.Sum(s => s.Distance);
Finish();
EndPlacement();
}
protected override void Update()