ignore broken bones from god knows what

This commit is contained in:
rootdarkarchon
2024-03-29 21:38:52 +01:00
parent 49e78187d6
commit 09b0383ad4

View File

@@ -43,9 +43,16 @@ public sealed class XivDataAnalyzer
outputIndices[skeletonName] = new(); outputIndices[skeletonName] = new();
for (ushort boneIdx = 0; boneIdx < curBones; boneIdx++) for (ushort boneIdx = 0; boneIdx < curBones; boneIdx++)
{ {
var boneName = handle->HavokSkeleton->Bones[boneIdx].Name.String; try
if (boneName == null) continue; {
outputIndices[skeletonName].Add(boneIdx); var boneName = handle->HavokSkeleton->Bones[boneIdx].Name.String;
if (boneName == null) continue;
outputIndices[skeletonName].Add(boneIdx);
}
catch
{
_logger.LogTrace("Could not get bone for {skellyname}:{idx}", skeletonName, boneIdx);
}
} }
i++; i++;
} }