mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-06 22:55:06 +08:00
fix: merge armature does not retain VRCConstraint bone references
This commit is contained in:
parent
981386acf4
commit
5c3a39836c
@ -107,6 +107,9 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
if (c.rootTransform == null) c.rootTransform = c.transform;
|
if (c.rootTransform == null) c.rootTransform = c.transform;
|
||||||
RetainBoneReferences(c);
|
RetainBoneReferences(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (var c in avatarGameObject.transform.GetComponentsInChildren<VRCConstraintBase>(true))
|
||||||
|
RetainBoneReferences(c);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
foreach (var c in avatarGameObject.transform.GetComponentsInChildren<IConstraint>(true))
|
foreach (var c in avatarGameObject.transform.GetComponentsInChildren<IConstraint>(true))
|
||||||
|
Loading…
Reference in New Issue
Block a user