1
0
mirror of synced 2024-11-14 11:07:39 +01:00

Adjust assimp mesh selector

This commit is contained in:
KillzXGaming 2020-03-25 14:01:42 -04:00
parent ed945a5f5e
commit 98153abbf8

View File

@ -28,6 +28,9 @@ namespace Toolbox.Library
foreach (Mesh msh in assimp.scene.Meshes)
{
if (msh.MaterialIndex != -1 && assimp.materials.Count > msh.MaterialIndex)
listView1.Items.Add($"{msh.Name}_{assimp.materials[msh.MaterialIndex].Name}");
else
listView1.Items.Add(msh.Name);
}
}