mirror of
https://github.com/ppy/osu.git
synced 2026-05-25 05:39:57 +08:00
Fix TestCaseStoryboard Restart button.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user