mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-04 13:45:04 +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;
|
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
|
||||||
|
|
||||||
|
#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))
|
foreach (var c in avatarGameObject.transform.GetComponentsInChildren<IConstraint>(true))
|
||||||
{
|
{
|
||||||
RetainBoneReferences(c as Component);
|
RetainBoneReferences(c as Component);
|
||||||
|
Loading…
Reference in New Issue
Block a user