mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 20:25:07 +08:00
Fix warning due to multiple destruction of bone proxy constraints
This commit is contained in:
parent
5549332a68
commit
fb5f8c555e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user