From ccd1722459f0107f5f759f2081bcd532b2681f65 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Wed, 29 Nov 2023 15:14:28 +0900 Subject: [PATCH] feat: remove constraints from clones --- Runtime/Scripts/LyumaAv3Runtime.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Runtime/Scripts/LyumaAv3Runtime.cs b/Runtime/Scripts/LyumaAv3Runtime.cs index 68893ef..a241a30 100644 --- a/Runtime/Scripts/LyumaAv3Runtime.cs +++ b/Runtime/Scripts/LyumaAv3Runtime.cs @@ -434,11 +434,10 @@ public string GetTypeString() }; public static readonly Type[] MirrorCloneComponentBlacklist = new Type[] { - typeof(Camera), typeof(FlareLayer), typeof(AudioSource), typeof(Rigidbody), typeof(Joint) + typeof(Camera), typeof(FlareLayer), typeof(AudioSource), typeof(Rigidbody), typeof(Joint), typeof(IConstraint), }; public static readonly Type[] ShadowCloneComponentBlacklist = new Type[] { - typeof(Camera), typeof(FlareLayer), typeof(AudioSource), typeof(Light), typeof(ParticleSystemRenderer), typeof(Rigidbody), typeof(Joint) - + typeof(Camera), typeof(FlareLayer), typeof(AudioSource), typeof(Light), typeof(ParticleSystemRenderer), typeof(Rigidbody), typeof(Joint), typeof(IConstraint), }; public static readonly HashSet CloneStringComponentBlacklist = new HashSet() { "DynamicBone", "VRCContact", "VRCPhysBone", "VRCSpatialAudioSource" };