mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09: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;
|
storyboard.Masking = true;
|
||||||
|
|
||||||
if (asyncLoad)
|
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
|
else
|
||||||
StoryboardContainer.Add(storyboard);
|
StoryboardContainer.Add(storyboard);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user