1
0
mirror of synced 2024-11-13 18:50:50 +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,7 +28,10 @@ namespace Toolbox.Library
foreach (Mesh msh in assimp.scene.Meshes)
{
listView1.Items.Add(msh.Name);
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);
}
}
public STGenericObject GetSelectedMesh()