mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 12:15:05 +08:00
chore: make it build on older VRCSDKs
This commit is contained in:
parent
5c3a39836c
commit
ab43e53231
@ -107,11 +107,15 @@ 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
|
||||
|
||||
#if MA_VRCSDK3_AVATARS_3_7_0_OR_NEWER
|
||||
foreach (var c in avatarGameObject.transform.GetComponentsInChildren<VRCConstraintBase>(true))
|
||||
{
|
||||
RetainBoneReferences(c);
|
||||
}
|
||||
#endif // MA_VRCSDK3_AVATARS_3_7_0_OR_NEWER
|
||||
|
||||
foreach (var c in avatarGameObject.transform.GetComponentsInChildren<IConstraint>(true))
|
||||
{
|
||||
RetainBoneReferences(c as Component);
|
||||
|
Loading…
Reference in New Issue
Block a user