Adjust assimp mesh selector
This commit is contained in:
parent
ed945a5f5e
commit
98153abbf8
@ -28,7 +28,10 @@ namespace Toolbox.Library
|
|||||||
|
|
||||||
foreach (Mesh msh in assimp.scene.Meshes)
|
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()
|
public STGenericObject GetSelectedMesh()
|
||||||
|
Loading…
Reference in New Issue
Block a user