fix: merge armature does not retain VRCConstraint bone references (#1020)

This commit is contained in:
bd_ 2024-08-18 21:55:19 -07:00 committed by GitHub
parent e7e030f0db
commit c7df409d70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,6 +107,9 @@ namespace nadena.dev.modular_avatar.core.editor
if (c.rootTransform == null) c.rootTransform = c.transform;
RetainBoneReferences(c);
}
foreach (var c in avatarGameObject.transform.GetComponentsInChildren<VRCConstraintBase>(true))
RetainBoneReferences(c);
#endif
foreach (var c in avatarGameObject.transform.GetComponentsInChildren<IConstraint>(true))