1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Fix osu!classic skin elements not showing up in storyboards

This commit is contained in:
Sebastian Krajewski 2020-10-09 17:34:01 +02:00
parent e0b5ead223
commit cf76d77762

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using System.IO;
using osuTK;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
@ -138,7 +139,8 @@ namespace osu.Game.Storyboards.Drawables
protected override void SkinChanged(ISkinSource skin, bool allowFallback)
{
base.SkinChanged(skin, allowFallback);
var newTexture = skin?.GetTexture(Sprite.Path) ?? storyboardTextureStore?.Get(texturePath);
var newTexture = skin?.GetTexture(Path.GetFileNameWithoutExtension(Sprite.Path)) ?? storyboardTextureStore?.Get(texturePath);
if (drawableSprite.Texture == newTexture) return;