1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-21 17:57:46 +08:00

Cache editor beatmap in placement blueprint test scene

This commit is contained in:
Bartłomiej Dach 2021-05-19 20:48:06 +02:00
parent 1d9a4b7bba
commit e9cab29134

View File

@ -33,8 +33,12 @@ namespace osu.Game.Tests.Visual
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
{
var dependencies = new DependencyContainer(base.CreateChildDependencies(parent));
dependencies.CacheAs(new EditorClock());
var playable = Beatmap.Value.GetPlayableBeatmap(Beatmap.Value.BeatmapInfo.Ruleset);
dependencies.CacheAs(new EditorBeatmap(playable));
return dependencies;
}