mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 05:04:15 +01:00
Use vertex element enums
This commit is contained in:
parent
b7472f722e
commit
81425b458e
2 changed files with 2 additions and 2 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit ffdb966fec5a657893289e655c641ceb3af1d59f
|
Subproject commit 0dc4c892308aea30314d118362b3ebab7706f4e5
|
||||||
|
|
@ -77,7 +77,7 @@ public sealed class ModelManager : SingleTaskQueue, IDisposable
|
||||||
var submesh = _mdl.SubMeshes[mesh.SubMeshIndex]; // just first for now
|
var submesh = _mdl.SubMeshes[mesh.SubMeshIndex]; // just first for now
|
||||||
|
|
||||||
var positionVertexElement = _mdl.VertexDeclarations[meshIndex].VertexElements
|
var positionVertexElement = _mdl.VertexDeclarations[meshIndex].VertexElements
|
||||||
.Where(decl => decl.Usage == 0 /* POSITION */)
|
.Where(decl => (MdlFile.VertexUsage)decl.Usage == MdlFile.VertexUsage.Position)
|
||||||
.First();
|
.First();
|
||||||
|
|
||||||
// reading in the entire indices list
|
// reading in the entire indices list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue