From 1843820688515cf2da55fe48b3949486f0e4d081 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidoS@users.noreply.github.com> Date: Mon, 5 Aug 2024 19:24:14 -0500 Subject: [PATCH] VisualCloneFix: fixed null bone, forgor to push --- VisualCloneFix/Patches.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/VisualCloneFix/Patches.cs b/VisualCloneFix/Patches.cs index 3da1b35..2fc9a14 100644 --- a/VisualCloneFix/Patches.cs +++ b/VisualCloneFix/Patches.cs @@ -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;