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

@ -1 +1 @@
Subproject commit ffdb966fec5a657893289e655c641ceb3af1d59f
Subproject commit 0dc4c892308aea30314d118362b3ebab7706f4e5

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