From bebdb4142409bfe6d9cf6190c79bb97fd25c8eb4 Mon Sep 17 00:00:00 2001 From: tliks Date: Sat, 26 Oct 2024 19:05:44 +0900 Subject: [PATCH] chore: remove parent check for adding meshsettings --- Editor/SetupOutfit.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Editor/SetupOutfit.cs b/Editor/SetupOutfit.cs index c09578c8..b9ab5dd5 100644 --- a/Editor/SetupOutfit.cs +++ b/Editor/SetupOutfit.cs @@ -231,8 +231,7 @@ namespace nadena.dev.modular_avatar.core.editor var mSInheritProbeAnchor = ModularAvatarMeshSettings.InheritMode.SetOrInherit; var mSInheritBounds = ModularAvatarMeshSettings.InheritMode.SetOrInherit; if (outfitRoot != null - && meshSettings == null - && outfitRoot.GetComponentInParent() == null) + && meshSettings == null) { meshSettings = Undo.AddComponent(outfitRoot.gameObject); } else if (outfitRoot != null && meshSettings != null) {