fix: shapekey deletion logic broke all bones in the mesh (#940)

This commit is contained in:
bd_ 2024-08-03 21:05:58 -07:00 committed by GitHub
parent c50b3526f6
commit d999f799fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,7 +144,7 @@ namespace nadena.dev.modular_avatar.core.editor
List<BoneWeight1> boneWeights = new(origBoneWeights.Length);
List<byte> bonesPerVertex = new(origBonesPerVertex.Length);
if (bonesPerVertex.Count == 0) return; // no bones in this mesh
if (origBonesPerVertex.Length == 0) return; // no bones in this mesh
int ptr = 0;
for (int i = 0; i < toRetain.Length; i++)