Fix state leakage across builds

This commit is contained in:
bd_ 2022-09-09 20:36:04 -07:00
parent 39f8c0b905
commit 2681c1d4c0
2 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,9 @@ namespace net.fushizen.modular_avatar.core.editor
public bool OnPreprocessAvatar(GameObject avatarGameObject)
{
defaultControllers_.Clear();
mergeSessions.Clear();
var descriptor = avatarGameObject.GetComponent<VRCAvatarDescriptor>();
InitSessions(descriptor.baseAnimationLayers);

View File

@ -43,6 +43,9 @@ namespace net.fushizen.modular_avatar.core.editor
public bool OnPreprocessAvatar(GameObject avatarGameObject)
{
BoneRemappings.Clear();
ToDelete.Clear();
var mergeArmatures = avatarGameObject.transform.GetComponentsInChildren<ModularAvatarMergeArmature>(true);
BoneRemappings.Clear();