mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 08:52:56 +08:00
Fix DrawableStoryboardVideo
attempting to unmap path once too much
The `StoryboardResourceLookupStore` cached at storyboard level is supposed to already be handling that; no need for local logic anymore.
This commit is contained in:
parent
ba518e1da8
commit
641e651bf2
@ -29,12 +29,7 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(IBindable<WorkingBeatmap> beatmap, TextureStore textureStore)
|
private void load(IBindable<WorkingBeatmap> beatmap, TextureStore textureStore)
|
||||||
{
|
{
|
||||||
string? path = beatmap.Value.BeatmapSetInfo?.GetPathForFile(Video.Path);
|
var stream = textureStore.GetStream(Video.Path);
|
||||||
|
|
||||||
if (path == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
var stream = textureStore.GetStream(path);
|
|
||||||
|
|
||||||
if (stream == null)
|
if (stream == null)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user