1
0
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:
Damnae 2017-09-15 14:15:26 +02:00
parent 291486a4d1
commit d9bde5ad5a

View File

@ -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);
}
}
}