1
0
mirror of synced 2025-03-01 16:10:52 +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.Runtime.InteropServices;
using System.Reflection; using System.Reflection;
using OpenTK.Graphics.OpenGL; using OpenTK.Graphics.OpenGL;
using Switch_Toolbox.Library.NodeWrappers;
namespace Toolbox namespace Toolbox
{ {
@ -385,9 +386,7 @@ namespace Toolbox
} }
} }
Cursor.Current = Cursors.WaitCursor; Cursor.Current = Cursors.WaitCursor;
STFileSaver.SaveFileFormat(format, FileName, UseCompressDialog); STFileSaver.SaveFileFormat(format, FileName, UseCompressDialog);
Cursor.Current = Cursors.Default; Cursor.Current = Cursors.Default;
} }
} }
@ -421,6 +420,13 @@ namespace Toolbox
} }
Cursor.Current = Cursors.WaitCursor; Cursor.Current = Cursors.WaitCursor;
if (format is STGenericWrapper)
{
((STGenericWrapper)format).Export(FileName);
return;
}
STFileSaver.SaveFileFormat(((IFileFormat)node), FileName, UseCompressDialog); STFileSaver.SaveFileFormat(((IFileFormat)node), FileName, UseCompressDialog);
Cursor.Current = Cursors.Default; Cursor.Current = Cursors.Default;