1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-04 07:03:39 +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
Unverified
parent a290437286
commit 58feba72a3
+2 -1
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()
{