mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Null-check drawingSettingsProvider
As it's annotated as an optional dependency.
This commit is contained in:
parent
7820c8ce4d
commit
518dcc567b
@ -80,6 +80,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
||||
base.LoadComplete();
|
||||
inputManager = GetContainingInputManager();
|
||||
|
||||
if (drawingSettingsProvider != null)
|
||||
{
|
||||
drawingSettingsProvider.Tolerance.BindValueChanged(e =>
|
||||
{
|
||||
if (bSplineBuilder.Tolerance != e.NewValue)
|
||||
@ -94,6 +96,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
||||
updateSliderPathFromBSplineBuilder();
|
||||
}, true);
|
||||
}
|
||||
}
|
||||
|
||||
[Resolved]
|
||||
private EditorBeatmap editorBeatmap { get; set; }
|
||||
|
Loading…
Reference in New Issue
Block a user