diff --git a/Assets/UniGLTF/Runtime/MeshUtility/MeshIntegrator.cs b/Assets/UniGLTF/Runtime/MeshUtility/MeshIntegrator.cs index 5b8b94eca..5bc4ebdb3 100644 --- a/Assets/UniGLTF/Runtime/MeshUtility/MeshIntegrator.cs +++ b/Assets/UniGLTF/Runtime/MeshUtility/MeshIntegrator.cs @@ -341,7 +341,7 @@ namespace UniGLTF.MeshUtility { mesh.tangents = Tangents.ToArray(); } - if (BoneWeights != null && Tangents.Count == Positions.Count) + if (BoneWeights != null && BoneWeights.Count == Positions.Count) { mesh.boneWeights = BoneWeights.ToArray(); }