Adjust assimp mesh selector
This commit is contained in:
parent
ed945a5f5e
commit
98153abbf8
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user