mirror of
https://github.com/ppy/osu.git
synced 2025-03-23 02:57:25 +08:00
Manually set clock for storyboard if loading before being given a parent
This commit is contained in:
parent
ffc3c9f8f6
commit
0cf4bf2352
@ -362,7 +362,12 @@ namespace osu.Game.Screens.Play
|
||||
storyboard.Masking = true;
|
||||
|
||||
if (asyncLoad)
|
||||
LoadComponentAsync(storyboard, StoryboardContainer.Add);
|
||||
LoadComponentAsync(storyboard, c =>
|
||||
{
|
||||
// Since the storyboard was loaded before it can be added to the draw hierarchy, manually set the clock for it here.
|
||||
c.Clock = GameplayClockContainer.GameplayClock;
|
||||
StoryboardContainer.Add(c);
|
||||
});
|
||||
else
|
||||
StoryboardContainer.Add(storyboard);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user