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:
parent
1d9a4b7bba
commit
e9cab29134
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user