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:
parent
ed96938a1c
commit
9ef5c35e52
2 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,7 @@ Additions
|
|||
|
||||
Improvements
|
||||
- Use TitleContainer for opening streams where possible
|
||||
- Set GraphicsResource Name when loading assets using RawContentManager
|
||||
|
||||
## 5.1.0
|
||||
### MLEM
|
||||
|
|
|
@ -67,6 +67,8 @@ namespace MLEM.Data.Content {
|
|||
this.LoadedAssets[assetName] = t;
|
||||
if (t is IDisposable d && !this.disposableAssets.Contains(d))
|
||||
this.disposableAssets.Add(d);
|
||||
if (t is GraphicsResource r)
|
||||
r.Name = assetName;
|
||||
return t;
|
||||
}
|
||||
} catch (FileNotFoundException) {
|
||||
|
|
Loading…
Reference in a new issue