fix: forget to retaining the root bone

This commit is contained in:
Reina_Sakiria 2024-11-17 16:28:36 +09:00
parent 9f4a7a6304
commit 207e6f24f6
No known key found for this signature in database
GPG Key ID: 5ACA56416BFBBAC5

View File

@ -1,4 +1,4 @@
/*
/*
* MIT License
*
* Copyright (c) 2022 bd_
@ -116,6 +116,10 @@ namespace nadena.dev.modular_avatar.core.editor
{
RetainBoneReferences(c as Component);
}
foreach (var smr in avatarGameObject.transform.GetComponentsInChildren<SkinnedMeshRenderer>(true))
{
BoneDatabase.RetainMergedBone(smr.rootBone);
}
new RetargetMeshes().OnPreprocessAvatar(avatarGameObject, BoneDatabase, PathMappings);
}