Fix warning due to multiple destruction of bone proxy constraints

This commit is contained in:
bd_ 2022-08-29 18:34:50 -07:00
parent 5549332a68
commit fb5f8c555e

View File

@ -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()