mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
Adjust tex2 loading to prevent altered images loading from it
This commit is contained in:
parent
371e4d37f9
commit
b11e913240
1 changed files with 2 additions and 2 deletions
|
@ -526,7 +526,7 @@ namespace Bfres.Structs
|
|||
//Determine tex2 botw files to get mip maps
|
||||
string Tex1 = GetFilePath();
|
||||
|
||||
if (!IsReplaced && Tex1 != null && Tex1.Contains(".Tex1"))
|
||||
if (!IsEdited && !IsReplaced && Tex1 != null && Tex1.Contains(".Tex1"))
|
||||
{
|
||||
string Tex2 = Tex1.Replace(".Tex1", ".Tex2");
|
||||
Console.WriteLine(Tex2 + " " + System.IO.File.Exists(Tex2) + " " + texture.Name);
|
||||
|
@ -548,7 +548,7 @@ namespace Bfres.Structs
|
|||
|
||||
private void LoadTex2MipMaps()
|
||||
{
|
||||
if (ResFileTexture2 == null || IsReplaced)
|
||||
if (ResFileTexture2 == null || IsEdited || IsReplaced)
|
||||
return;
|
||||
|
||||
Console.WriteLine((ResFileTexture2.Textures.ContainsKey(texture.Name)));
|
||||
|
|
Loading…
Reference in a new issue