diff --git a/Packages/com.chocopoi.vrc.dressingtools/Editor/Wearable/Modules/AnimationGenerationModule.cs b/Packages/com.chocopoi.vrc.dressingtools/Editor/Wearable/Modules/AnimationGenerationModule.cs index ef550c26..06021cb3 100644 --- a/Packages/com.chocopoi.vrc.dressingtools/Editor/Wearable/Modules/AnimationGenerationModule.cs +++ b/Packages/com.chocopoi.vrc.dressingtools/Editor/Wearable/Modules/AnimationGenerationModule.cs @@ -81,8 +81,9 @@ private static void InvertToggleStates(DTCabinet cabinet, WearableConfig config, // invert wearable toggles foreach (var toggle in agm.wearableAnimationOnWear.toggles) { + Debug.Log("toggle: " + toggle != null); var wearableToggleObj = wearableGameObject.transform.Find(toggle.path); - if (wearableGameObject == null) + if (wearableToggleObj == null) { Debug.LogWarning("[DressingTools] [AnimationGenerationModule] Wearable toggle GameObject not found at path: " + toggle.path); continue;