mirror of https://github.com/ppy/osu
Fix exception through due to multiple binds
This commit is contained in:
parent
91735ff367
commit
dde8432684
|
@ -49,9 +49,12 @@ public BackgroundScreenBeatmap(WorkingBeatmap beatmap = null)
|
||||||
Beatmap = beatmap;
|
Beatmap = beatmap;
|
||||||
|
|
||||||
InternalChild = dimmable = CreateFadeContainer();
|
InternalChild = dimmable = CreateFadeContainer();
|
||||||
|
|
||||||
dimmable.EnableUserDim.BindTo(EnableUserDim);
|
dimmable.EnableUserDim.BindTo(EnableUserDim);
|
||||||
dimmable.IsBreakTime.BindTo(IsBreakTime);
|
dimmable.IsBreakTime.BindTo(IsBreakTime);
|
||||||
dimmable.BlurAmount.BindTo(BlurAmount);
|
dimmable.BlurAmount.BindTo(BlurAmount);
|
||||||
|
|
||||||
|
StoryboardReplacesBackground.BindTo(dimmable.StoryboardReplacesBackground);
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
@ -99,7 +102,6 @@ private void switchBackground(BeatmapBackground b)
|
||||||
|
|
||||||
b.Depth = newDepth;
|
b.Depth = newDepth;
|
||||||
dimmable.Background = Background = b;
|
dimmable.Background = Background = b;
|
||||||
StoryboardReplacesBackground.BindTo(dimmable.StoryboardReplacesBackground);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool Equals(BackgroundScreen other)
|
public override bool Equals(BackgroundScreen other)
|
||||||
|
|
Loading…
Reference in New Issue