mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix index offset mis-cast causing overflow
This commit is contained in:
parent
1cee1c24ec
commit
a4bd015836
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ public class MeshImporter(IEnumerable<Node> nodes, IoNotifier notifier)
|
|||
// And finally, merge in the sub-mesh struct itself.
|
||||
_subMeshes.Add(subMesh.SubMeshStruct with
|
||||
{
|
||||
IndexOffset = (ushort)(subMesh.SubMeshStruct.IndexOffset + indexOffset),
|
||||
IndexOffset = (uint)(subMesh.SubMeshStruct.IndexOffset + indexOffset),
|
||||
AttributeIndexMask = Utility.GetMergedAttributeMask(
|
||||
subMesh.SubMeshStruct.AttributeIndexMask, subMesh.MetaAttributes, _metaAttributes),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue