Updated bone import maximum

This commit is contained in:
MousieOwl 2024-12-17 11:28:22 +13:00
parent b5a469c524
commit 5e4ba55fdb
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ContentModelUserStore">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />

View file

@ -234,10 +234,10 @@ public partial class ModelImporter(ModelRoot model, IoNotifier notifier)
boneIndices.Add((ushort)boneIndex);
}
if (boneIndices.Count > 64)
if (boneIndices.Count > 128)
throw notifier.Exception("XIV does not support meshes weighted to a total of more than 64 bones.");
var boneIndicesArray = new ushort[64];
var boneIndicesArray = new ushort[128];
Array.Copy(boneIndices.ToArray(), boneIndicesArray, boneIndices.Count);
var boneTableIndex = _boneTables.Count;