1
0
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:
Dean Herbert 2019-07-12 13:45:34 +09:00
parent 671f7f99cd
commit 44855d8bb2

View File

@ -138,6 +138,8 @@ namespace osu.Game.Screens.Backgrounds
get => background;
set
{
background?.Expire();
base.Add(background = value);
background.BlurTo(blurTarget, 0, Easing.OutQuint);
}