- [GUI] Add option to reset settings.

- [GUI] Fix bug with texture mapping in `Export Options`.
This commit is contained in:
Razmoth
2024-01-28 21:50:59 +04:00
parent b64c915f3a
commit a0d8691331
10 changed files with 164 additions and 74 deletions

View File

@@ -712,9 +712,8 @@ namespace AssetStudio
iMat.Textures.Add(texture);
int dest = -1;
var entry = options.texs.FirstOrDefault(x => x.Value == texEnv.Key);
if (!entry.Equals(default))
dest = entry.Key;
if (options.texs.TryGetValue(texEnv.Key, out var target))
dest = target;
else if (texEnv.Key == "_MainTex")
dest = 0;
else if (texEnv.Key == "_BumpMap")
@@ -1174,7 +1173,7 @@ namespace AssetStudio
public Game game;
public bool collectAnimations;
public Dictionary<string, (bool, int)> uvs;
public Dictionary<int, string> texs;
public Dictionary<string, int> texs;
}
}
}