Invoke extension hooks before cleaning components

This commit is contained in:
bd_ 2022-09-11 20:20:09 -07:00 committed by bd_
parent 441865cd22
commit cba767b0fa

View File

@ -80,12 +80,12 @@ namespace net.fushizen.modular_avatar.core.editor
new BoneProxyProcessor().OnPreprocessAvatar(avatarGameObject);
new MergeAnimatorProcessor().OnPreprocessAvatar(avatarGameObject);
AfterProcessing?.Invoke(avatarGameObject);
foreach (var component in avatarGameObject.GetComponentsInChildren<AvatarTagComponent>(true))
{
UnityEngine.Object.DestroyImmediate(component);
}
AfterProcessing?.Invoke(avatarGameObject);
}
}
}