mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 00:02:54 +08:00
Add comment about why we are running checkForComponents
on a timer
This commit is contained in:
parent
a298a93070
commit
7d8be8cd83
@ -30,6 +30,8 @@ namespace osu.Game.Skinning.Editor
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user