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,19 +80,22 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
|||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
inputManager = GetContainingInputManager();
|
inputManager = GetContainingInputManager();
|
||||||
|
|
||||||
drawingSettingsProvider.Tolerance.BindValueChanged(e =>
|
if (drawingSettingsProvider != null)
|
||||||
{
|
{
|
||||||
if (bSplineBuilder.Tolerance != e.NewValue)
|
drawingSettingsProvider.Tolerance.BindValueChanged(e =>
|
||||||
bSplineBuilder.Tolerance = e.NewValue;
|
{
|
||||||
updateSliderPathFromBSplineBuilder();
|
if (bSplineBuilder.Tolerance != e.NewValue)
|
||||||
}, true);
|
bSplineBuilder.Tolerance = e.NewValue;
|
||||||
|
updateSliderPathFromBSplineBuilder();
|
||||||
|
}, true);
|
||||||
|
|
||||||
drawingSettingsProvider.CornerThreshold.BindValueChanged(e =>
|
drawingSettingsProvider.CornerThreshold.BindValueChanged(e =>
|
||||||
{
|
{
|
||||||
if (bSplineBuilder.CornerThreshold != e.NewValue)
|
if (bSplineBuilder.CornerThreshold != e.NewValue)
|
||||||
bSplineBuilder.CornerThreshold = e.NewValue;
|
bSplineBuilder.CornerThreshold = e.NewValue;
|
||||||
updateSliderPathFromBSplineBuilder();
|
updateSliderPathFromBSplineBuilder();
|
||||||
}, true);
|
}, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
|
Loading…
Reference in New Issue
Block a user