chore: refine condition on Heuristic Bone Mapper's exact humanoid bone matching

This commit is contained in:
Sayamame-beans 2024-10-13 17:58:38 +09:00
parent 3ef94d99dd
commit b4b7a24a22

View File

@ -365,7 +365,7 @@ namespace nadena.dev.modular_avatar.core.editor
if (avatarAnimator != null) if (avatarAnimator != null)
{ {
var avatarBone = avatarAnimator.GetBoneTransform(humanoidBone); var avatarBone = avatarAnimator.GetBoneTransform(humanoidBone);
if (avatarBone != null) if (avatarBone != null && unassigned.Contains(avatarBone))
{ {
mappings[child] = avatarBone; mappings[child] = avatarBone;
unassigned.Remove(avatarBone); unassigned.Remove(avatarBone);