mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
Fix state leakage across builds
This commit is contained in:
parent
39f8c0b905
commit
2681c1d4c0
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user