mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +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
|
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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue