mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-14 11:18:47 -05:00
Add option to dump material assets during model export
This commit is contained in:
@@ -13,6 +13,7 @@ namespace AssetStudio
|
||||
public List<ImportedTexture> TextureList { get; protected set; } = new List<ImportedTexture>();
|
||||
public List<ImportedKeyframedAnimation> AnimationList { get; protected set; } = new List<ImportedKeyframedAnimation>();
|
||||
public List<ImportedMorph> MorphList { get; protected set; } = new List<ImportedMorph>();
|
||||
public HashSet<Material> MaterialAssetSet { get; protected set; } = new HashSet<Material>();
|
||||
|
||||
private ImageFormat imageFormat;
|
||||
private Avatar avatar;
|
||||
@@ -315,6 +316,7 @@ namespace AssetStudio
|
||||
if (meshR.m_Materials[i - firstSubMesh].TryGet(out var m_Material))
|
||||
{
|
||||
mat = m_Material;
|
||||
MaterialAssetSet.Add(mat);
|
||||
}
|
||||
}
|
||||
ImportedMaterial iMat = ConvertMaterial(mat);
|
||||
|
||||
Reference in New Issue
Block a user