1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Fix multiple bftex importing

This commit is contained in:
KillzXGaming 2019-04-21 14:31:52 -04:00
parent 524194a288
commit d93fe604be
6 changed files with 11 additions and 9 deletions

Binary file not shown.

View File

@ -502,7 +502,6 @@ namespace Bfres.Structs
ftex.IsEdited = true;
ftex.Read(ftex.texture);
AddNode(ftex);
return;
}
else if (ext == ".dds" || ext == ".dds2")
{
@ -531,17 +530,20 @@ namespace Bfres.Structs
if (settings.Count == 0)
{
importer.Dispose();
return;
}
importer.LoadSettings(settings);
if (importer.ShowDialog() == DialogResult.OK)
else
{
ImportTexture(settings);
importer.LoadSettings(settings);
if (importer.ShowDialog() == DialogResult.OK)
{
ImportTexture(settings);
settings.Clear();
GC.Collect();
Cursor.Current = Cursors.Default;
}
}
settings.Clear();
GC.Collect();
Cursor.Current = Cursors.Default;
}
public GTXImporterSettings LoadSettings(System.Drawing.Image image, string Name)