mirror of https://github.com/ppy/osu
Add comment about why we are running `checkForComponents` on a timer
This commit is contained in:
parent
a298a93070
commit
7d8be8cd83
|
@ -30,6 +30,8 @@ private void checkForComponents()
|
||||||
{
|
{
|
||||||
foreach (var c in target.ChildrenOfType<ISkinnableComponent>().ToArray()) AddBlueprintFor(c);
|
foreach (var c in target.ChildrenOfType<ISkinnableComponent>().ToArray()) AddBlueprintFor(c);
|
||||||
|
|
||||||
|
// We'd hope to eventually be running this in a more sensible way, but this handles situations where new drawables become present (ie. during ongoing gameplay)
|
||||||
|
// or when drawables in the target are loaded asynchronously and may not be immediately available when this BlueprintContainer is loaded.
|
||||||
Scheduler.AddDelayed(checkForComponents, 1000);
|
Scheduler.AddDelayed(checkForComponents, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue