mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-02 03:32:56 +08:00
Merge pull request #16 from bdunderscore/fix-state-leak
Fix state leakage across builds
This commit is contained in:
commit
113f7adbee
@ -46,6 +46,9 @@ namespace net.fushizen.modular_avatar.core.editor
|
||||
|
||||
protected override bool OnPreprocessAvatarWrapped(GameObject avatarGameObject)
|
||||
{
|
||||
defaultControllers_.Clear();
|
||||
mergeSessions.Clear();
|
||||
|
||||
var descriptor = avatarGameObject.GetComponent<VRCAvatarDescriptor>();
|
||||
|
||||
InitSessions(descriptor.baseAnimationLayers);
|
||||
|
@ -43,6 +43,9 @@ namespace net.fushizen.modular_avatar.core.editor
|
||||
|
||||
protected override bool OnPreprocessAvatarWrapped(GameObject avatarGameObject)
|
||||
{
|
||||
BoneRemappings.Clear();
|
||||
ToDelete.Clear();
|
||||
|
||||
var mergeArmatures = avatarGameObject.transform.GetComponentsInChildren<ModularAvatarMergeArmature>(true);
|
||||
|
||||
BoneRemappings.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user