Fix tex2 saving depending on method of saving.
This commit is contained in:
parent
e51b1e2382
commit
fe4a560a6a
Binary file not shown.
1178
PhyreEngine_PTexture2D_phyre.bms
Normal file
1178
PhyreEngine_PTexture2D_phyre.bms
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user