mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 23:15:45 +08:00
ensure Proxy created when DI finished
This commit is contained in:
parent
05a87c9a6e
commit
6b1fc292c5
@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
||||
{
|
||||
protected new DrawableSlider DrawableObject => (DrawableSlider)base.DrawableObject;
|
||||
|
||||
protected SliderCommandProxy Proxy;
|
||||
protected SliderCommandProxy Proxy = null!;
|
||||
|
||||
protected SliderBodyPiece BodyPiece { get; private set; } = null!;
|
||||
protected SliderCircleOverlay HeadOverlay { get; private set; } = null!;
|
||||
@ -98,8 +98,6 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config)
|
||||
{
|
||||
Proxy = new SliderCommandProxy(commandHandler, HitObject);
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
BodyPiece = new SliderBodyPiece(),
|
||||
@ -121,6 +119,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
Proxy = new SliderCommandProxy(commandHandler, HitObject);
|
||||
|
||||
controlPoints.BindTo(HitObject.Path.ControlPoints);
|
||||
controlPoints.CollectionChanged += (_, _) => fullPathCache.Invalidate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user