diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index 3087b610..574d2cdf 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/Switch_FileFormatsMain/GUI/Byaml/CourseMuunt/TurboMunntEditor.cs b/Switch_FileFormatsMain/GUI/Byaml/CourseMuunt/TurboMunntEditor.cs index 61b851ef..a9821952 100644 --- a/Switch_FileFormatsMain/GUI/Byaml/CourseMuunt/TurboMunntEditor.cs +++ b/Switch_FileFormatsMain/GUI/Byaml/CourseMuunt/TurboMunntEditor.cs @@ -56,9 +56,10 @@ namespace FirstPlugin.Forms CourseMuuntScene scene; + string CourseFolder; public void LoadCourseInfo(System.Collections.IEnumerable by, string FilePath) { - string CourseFolder = System.IO.Path.GetDirectoryName(FilePath); + CourseFolder = System.IO.Path.GetDirectoryName(FilePath); scene = new CourseMuuntScene(by); //Add collsion (switch) @@ -192,7 +193,7 @@ namespace FirstPlugin.Forms } } - aamp.Save("DEBUG_PROBE.aamp"); + aamp.Save($"{CourseFolder}/DEBUG_PROBE.aamp"); foreach (var entry in probeLightingConfig.Entries) { @@ -248,6 +249,14 @@ namespace FirstPlugin.Forms { if (entry.ParamType == aampv1.ParamType.BufferUint) probeEntry.IndexBuffer = (uint[])entry.Value; + + //Experimental, just fill in indices + uint[] values = (uint[])entry.Value; + for (int i = 0; i < values.Length; i++) + { + values[i] = 0; + } + entry.Value = values; } } } diff --git a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache index da2c8860..7a6abf52 100644 Binary files a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache and b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll index a2f30290..ee064b65 100644 Binary files a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll and b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll differ diff --git a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb index d3bfa0fd..3405f27c 100644 Binary files a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb and b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb differ diff --git a/Switch_Toolbox_Library/FileFormats/Assimp/AssimpSaver.cs b/Switch_Toolbox_Library/FileFormats/Assimp/AssimpSaver.cs index 2bac246c..a14a1d1b 100644 --- a/Switch_Toolbox_Library/FileFormats/Assimp/AssimpSaver.cs +++ b/Switch_Toolbox_Library/FileFormats/Assimp/AssimpSaver.cs @@ -36,7 +36,7 @@ namespace Switch_Toolbox.Library if (ext == ".ply") formatID = "ply"; - if (v.ExportFile(scene, FileName, formatID)) + if (v.ExportFile(scene, FileName, formatID, PostProcessSteps.FlipUVs)) MessageBox.Show($"Exported {FileName} Successfuly!"); else MessageBox.Show($"Failed to export {FileName}!");