diff --git a/Packages/net.fushizen.modular-avatar/Runtime/ModularAvatarBoneProxy.cs b/Packages/net.fushizen.modular-avatar/Runtime/ModularAvatarBoneProxy.cs index 0d8f3c2a..c3b26388 100644 --- a/Packages/net.fushizen.modular-avatar/Runtime/ModularAvatarBoneProxy.cs +++ b/Packages/net.fushizen.modular-avatar/Runtime/ModularAvatarBoneProxy.cs @@ -76,7 +76,7 @@ namespace net.fushizen.modular_avatar.core private void OnDestroy() { - if (constraint != null) DestroyImmediate(constraint); + UnityEditor.EditorApplication.delayCall += () => { if (constraint != null) DestroyImmediate(constraint); }; } private void UpdateDynamicMapping()