From 01d24f68091f6a4b60a9c5e688bc2e5447ccaa0d Mon Sep 17 00:00:00 2001 From: Reina_Sakiria <99442371+ReinaS-64892@users.noreply.github.com> Date: Sat, 9 Mar 2024 17:57:15 +0900 Subject: [PATCH] fix: no purge MoveIndependently (#749) --- Editor/PluginDefinition/PluginDefinition.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Editor/PluginDefinition/PluginDefinition.cs b/Editor/PluginDefinition/PluginDefinition.cs index 8f99db5a..bb5307fd 100644 --- a/Editor/PluginDefinition/PluginDefinition.cs +++ b/Editor/PluginDefinition/PluginDefinition.cs @@ -84,6 +84,10 @@ namespace nadena.dev.modular_avatar.core.editor.plugin { UnityEngine.Object.DestroyImmediate(component); } + foreach (var component in ctx.AvatarRootTransform.GetComponentsInChildren(true)) + { + UnityEngine.Object.DestroyImmediate(component); + } }); #if MA_VRCSDK3_AVATARS seq.Run(PruneParametersPass.Instance);