mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:42:57 +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;
|
||||
set
|
||||
{
|
||||
background?.Expire();
|
||||
|
||||
base.Add(background = value);
|
||||
background.BlurTo(blurTarget, 0, Easing.OutQuint);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user