1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 12:58:33 +01:00

Set GraphicsResource Name when loading assets using RawContentManager

This commit is contained in:
Ell 2021-11-08 23:46:59 +01:00
parent ed96938a1c
commit 9ef5c35e52
2 changed files with 3 additions and 0 deletions

View file

@ -43,6 +43,7 @@ Additions
Improvements Improvements
- Use TitleContainer for opening streams where possible - Use TitleContainer for opening streams where possible
- Set GraphicsResource Name when loading assets using RawContentManager
## 5.1.0 ## 5.1.0
### MLEM ### MLEM

View file

@ -67,6 +67,8 @@ namespace MLEM.Data.Content {
this.LoadedAssets[assetName] = t; this.LoadedAssets[assetName] = t;
if (t is IDisposable d && !this.disposableAssets.Contains(d)) if (t is IDisposable d && !this.disposableAssets.Contains(d))
this.disposableAssets.Add(d); this.disposableAssets.Add(d);
if (t is GraphicsResource r)
r.Name = assetName;
return t; return t;
} }
} catch (FileNotFoundException) { } catch (FileNotFoundException) {