mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Ensure any existing background is expired if set more than once
This commit is contained in:
parent
671f7f99cd
commit
44855d8bb2
@ -138,6 +138,8 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
get => background;
|
get => background;
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
background?.Expire();
|
||||||
|
|
||||||
base.Add(background = value);
|
base.Add(background = value);
|
||||||
background.BlurTo(blurTarget, 0, Easing.OutQuint);
|
background.BlurTo(blurTarget, 0, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user