VisualCloneFix: fixed null bone, forgor to push

This commit is contained in:
NotAKidoS 2024-08-05 19:24:14 -05:00
parent bdf4a638b7
commit 1843820688

View file

@ -107,8 +107,12 @@ public static class Patches
// Populate the weights array
for (int i = 0; i < boneCount; i++)
if (exclusions.ContainsKey(bones[i]))
{
Transform bone = bones[i];
if (bone == null) continue;
if (exclusions.ContainsKey(bone))
boneHasExclusion[i] = true;
}
const float minWeightThreshold = 0.2f;