mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-11 23:19:00 +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()
|
private void OnDestroy()
|
||||||
{
|
{
|
||||||
if (constraint != null) DestroyImmediate(constraint);
|
UnityEditor.EditorApplication.delayCall += () => { if (constraint != null) DestroyImmediate(constraint); };
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateDynamicMapping()
|
private void UpdateDynamicMapping()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user