- [Core] Added export option to include materials with models in /Materials.

- [GUI] fix issue with `Reset` button causing unintended behaviour.
- [Core] fix bug where `Logger` causes performance issues.
This commit is contained in:
Razmoth
2024-01-30 19:57:10 +04:00
parent f2d65e458c
commit 92d7470082
14 changed files with 144 additions and 152 deletions

View File

@@ -649,6 +649,10 @@ namespace AssetStudio
ImportedMaterial iMat;
if (mat != null)
{
if (options.exportMaterials)
{
options.materials.Add(mat);
}
iMat = ImportedHelpers.FindMaterial(mat.m_Name, MaterialList);
if (iMat != null)
{
@@ -1172,6 +1176,8 @@ namespace AssetStudio
public ImageFormat imageFormat;
public Game game;
public bool collectAnimations;
public bool exportMaterials;
public HashSet<Material> materials;
public Dictionary<string, (bool, int)> uvs;
public Dictionary<string, int> texs;
}