1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 16:12:54 +08:00

Fix scheduled events not running on previous drawables

This commit is contained in:
Dean Herbert 2019-07-25 15:59:44 +09:00
parent a290437286
commit 58feba72a3

View File

@ -38,7 +38,8 @@ namespace osu.Game.Skinning
private void onChange() =>
// schedule required to avoid calls after disposed.
Schedule(() => SkinChanged(skin, allowDefaultFallback));
// note that this has the side-effect of components only performance a skin change when they are alive.
Scheduler.AddOnce(() => SkinChanged(skin, allowDefaultFallback));
protected override void LoadAsyncComplete()
{