We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87bcce5 commit 51c97d4Copy full SHA for 51c97d4
Assets/ResoniteSDK/Editor/AssetConverters/MeshConverter.cs
@@ -127,7 +127,9 @@ public static ResoniteLink.ImportMeshRawData ConvertMesh(UnityEngine.Mesh mesh)
127
data.BlendShapes.Add(blendshape);
128
}
129
130
- data.BoneWeightCount = mesh.HasVertexAttribute(UnityEngine.Rendering.VertexAttribute.BlendWeight) ? 4 : 0;
+ var hasBoneWeights = mesh.bindposeCount > 0;
131
+
132
+ data.BoneWeightCount = hasBoneWeights ? 4 : 0;
133
134
// Convert the vertex data
135
data.AllocateBuffer();
0 commit comments