From a251d5e2168d6c6ebfa7ecf91ad8dd37246e62dd Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Mon, 27 Jan 2020 16:18:17 -0500 Subject: [PATCH] Fix Wii U material visibily animation exporting --- .../FileFormats/BFRES/Bfres Structs/SubFiles/FVIS.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FVIS.cs b/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FVIS.cs index 39fad47b..eddf780f 100644 --- a/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FVIS.cs +++ b/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FVIS.cs @@ -49,7 +49,10 @@ namespace Bfres.Structs public override void Export(string FileName) { - VisibilityAnim.Export(FileName, GetResFile()); + if (VisibilityAnim != null) + VisibilityAnim.Export(FileName, GetResFile()); + else + VisibilityAnimU.Export(FileName, GetResFileU()); } public override void Replace(string FileName)