mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Fix TestCaseStoryboard Restart button.
This commit is contained in:
parent
291486a4d1
commit
d9bde5ad5a
@ -80,11 +80,15 @@ namespace osu.Desktop.Tests.Visual
|
||||
storyboardContainer.Remove(storyboard);
|
||||
|
||||
var decoupledClock = new DecoupleableInterpolatingFramedClock { IsCoupled = true };
|
||||
decoupledClock.ChangeSource(working.Track);
|
||||
storyboardContainer.Clock = decoupledClock;
|
||||
|
||||
storyboardContainer.Add(storyboard = working.Beatmap.Storyboard.CreateDrawable());
|
||||
storyboard = working.Beatmap.Storyboard.CreateDrawable();
|
||||
storyboard.Passing = false;
|
||||
if (!working.Beatmap.StoryboardReplacesBackground)
|
||||
storyboard.BackgroundTexture = working.Background;
|
||||
|
||||
storyboardContainer.Add(storyboard);
|
||||
decoupledClock.ChangeSource(working.Track);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user