diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index 70526207..d5492777 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/Switch_FileFormatsMain/FileFormats/Archives/BEA.cs b/Switch_FileFormatsMain/FileFormats/Archives/BEA.cs index 802430b4..fd54cdf4 100644 --- a/Switch_FileFormatsMain/FileFormats/Archives/BEA.cs +++ b/Switch_FileFormatsMain/FileFormats/Archives/BEA.cs @@ -123,8 +123,8 @@ namespace FirstPlugin Text = FileName; CanSave = true; - BezelEngineArchive bea = new BezelEngineArchive(stream); - // FillTreeNodes(this, beaFile.FileList); + beaFile = new BezelEngineArchive(stream); + FillTreeNodes(this, beaFile.FileList); ContextMenu = new ContextMenu(); diff --git a/Switch_FileFormatsMain/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL.cs b/Switch_FileFormatsMain/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL.cs index 57bf6566..9a78604a 100644 --- a/Switch_FileFormatsMain/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL.cs +++ b/Switch_FileFormatsMain/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL.cs @@ -651,8 +651,6 @@ namespace Bfres.Structs foreach (STGenericMaterial mat in assimp.materials) { FMAT fmat = new FMAT(); - materials.Add(fmat.Text, fmat); - Nodes["FmatFolder"].Nodes.Add(fmat); if (resFileU != null) { @@ -785,6 +783,9 @@ namespace Bfres.Structs fmat.Material.Name = Text; fmat.SetMaterial(fmat.Material); } + + materials.Add(fmat.Text, fmat); + Nodes["FmatFolder"].Nodes.Add(fmat); } } diff --git a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.dll index 1d56b741..5ddc5aee 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 4e81af24..02361326 100644 Binary files a/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb and b/Switch_FileFormatsMain/obj/Release/FirstPlugin.Plg.pdb differ