diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index 91909706..d635eb34 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal index d4a7cdb6..88af7953 100644 Binary files a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal and b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal differ diff --git a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache index abe9f99d..5ddbc9ca 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/Switch_FileFormatsMain.csprojAssemblyReference.cache b/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache index 65463518..adc0a29e 100644 Binary files a/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache and b/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache differ diff --git a/Switch_Toolbox_Library/FileFormats/Assimp/Assimp.cs b/Switch_Toolbox_Library/FileFormats/Assimp/Assimp.cs index 9a56bc47..2e69a326 100644 --- a/Switch_Toolbox_Library/FileFormats/Assimp/Assimp.cs +++ b/Switch_Toolbox_Library/FileFormats/Assimp/Assimp.cs @@ -57,11 +57,13 @@ namespace Switch_Toolbox.Library { MessageBox.Show($"Failed to load assimp! Make sure you have Assimp32.dll next to the program!"); } - Console.WriteLine(e); + else + MessageBox.Show($"{e.ToString()}"); } } public void processNode() { + Console.WriteLine($"Mesh Count " + scene.MeshCount); Matrix4x4 identity = Matrix4x4.Identity; if (scene.RootNode != null) { @@ -103,6 +105,16 @@ namespace Switch_Toolbox.Library objects.Add(CreateGenericObject(scene.Meshes[index], index, worldTK)); } + if (objects.Count <= 0) + { + int Index = 0; + foreach (Mesh msh in scene.Meshes) + { + objects.Add(CreateGenericObject(msh, Index, Matrix4.Identity)); + Index++; + } + } + foreach (Node child in parent.Children) BuildNode(child, ref world); }