mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +08:00
Replace assertion with soft null check
Surrounding `OnDrag{Start,End}` methods did so already.
This commit is contained in:
parent
6330fa5dc5
commit
c3fada1926
@ -2,7 +2,6 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Allocation;
|
||||
@ -167,9 +166,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
||||
|
||||
protected override void OnDrag(DragEvent e)
|
||||
{
|
||||
Debug.Assert(placementControlPoint != null);
|
||||
|
||||
placementControlPoint.Position = e.MousePosition - HitObject.Position;
|
||||
if (placementControlPoint != null)
|
||||
placementControlPoint.Position = e.MousePosition - HitObject.Position;
|
||||
}
|
||||
|
||||
protected override void OnDragEnd(DragEndEvent e)
|
||||
|
Loading…
Reference in New Issue
Block a user