From 3c97970794b2c56a08cd03b761054aa7125c1c1f Mon Sep 17 00:00:00 2001 From: takahiro kawanaka Date: Sat, 2 Dec 2023 01:26:47 +0900 Subject: [PATCH] Fixed a bug that caused an exception when changing clothes. --- AdvIKPlugin/AdvIKCharaController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AdvIKPlugin/AdvIKCharaController.cs b/AdvIKPlugin/AdvIKCharaController.cs index 7c06e0d..9e0e3fb 100644 --- a/AdvIKPlugin/AdvIKCharaController.cs +++ b/AdvIKPlugin/AdvIKCharaController.cs @@ -411,7 +411,8 @@ private IEnumerator ScanForFlagCo() if (AdvIKPlugin.EnableResizeOnFolder.Value) { OCIChar me = StudioObjectExtensions.GetOCIChar(ChaControl); - RecurseForName(me.treeNodeObject); + if(me != null) + RecurseForName(me.treeNodeObject); } yield return new WaitForSeconds(5); }