Fix skins not being displayed correctly in the editor

This commit is contained in:
Dean Herbert
2019-10-08 12:52:34 +09:00
parent 438408161c
commit 24269c0384
2 changed files with 13 additions and 2 deletions

View File

@ -53,7 +53,7 @@ namespace osu.Game.Skinning
if (AllowTextureLookup(componentName) && (sourceTexture = skin?.GetTexture(componentName)) != null)
return sourceTexture;
return fallbackSource.GetTexture(componentName);
return fallbackSource?.GetTexture(componentName);
}
public SampleChannel GetSample(ISampleInfo sampleInfo)