Use vertex element enums

This commit is contained in:
ackwell 2023-12-27 17:25:14 +11:00
parent b7472f722e
commit 81425b458e
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ public sealed class ModelManager : SingleTaskQueue, IDisposable
var submesh = _mdl.SubMeshes[mesh.SubMeshIndex]; // just first for now
var positionVertexElement = _mdl.VertexDeclarations[meshIndex].VertexElements
.Where(decl => decl.Usage == 0 /* POSITION */)
.Where(decl => (MdlFile.VertexUsage)decl.Usage == MdlFile.VertexUsage.Position)
.First();
// reading in the entire indices list