1
0
mirror of synced 2025-02-26 06:49:45 +01:00

Fix my stupid mistakes with assimp.

This commit is contained in:
KillzXGaming 2019-05-04 20:48:19 -04:00
parent 85c5051b36
commit 0fc310380b
2 changed files with 3 additions and 6 deletions

Binary file not shown.

View File

@ -115,12 +115,9 @@ namespace Switch_Toolbox.Library
STConsole.WriteLine($"Scale {worldTK.ExtractScale()}");
}
int Index = 0;
foreach (Mesh msh in scene.Meshes)
{
objects.Add(CreateGenericObject(msh, Index, worldTK));
Index++;
}
foreach (int index in parent.MeshIndices)
objects.Add(CreateGenericObject(scene.Meshes[index], index, worldTK));
foreach (Node child in parent.Children)
BuildNode(child, ref world);