1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Fix tex2 saving depending on method of saving.

This commit is contained in:
KillzXGaming 2019-05-18 18:24:45 -04:00
parent e51b1e2382
commit fe4a560a6a
4 changed files with 1186 additions and 2 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -15,6 +15,7 @@ using System.IO;
using System.Runtime.InteropServices;
using System.Reflection;
using OpenTK.Graphics.OpenGL;
using Switch_Toolbox.Library.NodeWrappers;
namespace Toolbox
{
@ -385,9 +386,7 @@ namespace Toolbox
}
}
Cursor.Current = Cursors.WaitCursor;
STFileSaver.SaveFileFormat(format, FileName, UseCompressDialog);
Cursor.Current = Cursors.Default;
}
}
@ -421,6 +420,13 @@ namespace Toolbox
}
Cursor.Current = Cursors.WaitCursor;
if (format is STGenericWrapper)
{
((STGenericWrapper)format).Export(FileName);
return;
}
STFileSaver.SaveFileFormat(((IFileFormat)node), FileName, UseCompressDialog);
Cursor.Current = Cursors.Default;