Skip to content

Commit a4bd015

Browse files
ackwellOttermandias
authored andcommitted
Fix index offset mis-cast causing overflow
1 parent 1cee1c2 commit a4bd015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Penumbra/Import/Models/Import/MeshImporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private void BuildSubMeshForNode(Node node)
167167
// And finally, merge in the sub-mesh struct itself.
168168
_subMeshes.Add(subMesh.SubMeshStruct with
169169
{
170-
IndexOffset = (ushort)(subMesh.SubMeshStruct.IndexOffset + indexOffset),
170+
IndexOffset = (uint)(subMesh.SubMeshStruct.IndexOffset + indexOffset),
171171
AttributeIndexMask = Utility.GetMergedAttributeMask(
172172
subMesh.SubMeshStruct.AttributeIndexMask, subMesh.MetaAttributes, _metaAttributes),
173173
});

0 commit comments

Comments
 (0)