mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-19 21:00:08 +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)
|
public bool OnPreprocessAvatar(GameObject avatarGameObject)
|
||||||
{
|
{
|
||||||
|
defaultControllers_.Clear();
|
||||||
|
mergeSessions.Clear();
|
||||||
|
|
||||||
var descriptor = avatarGameObject.GetComponent<VRCAvatarDescriptor>();
|
var descriptor = avatarGameObject.GetComponent<VRCAvatarDescriptor>();
|
||||||
|
|
||||||
InitSessions(descriptor.baseAnimationLayers);
|
InitSessions(descriptor.baseAnimationLayers);
|
||||||
|
@ -43,6 +43,9 @@ namespace net.fushizen.modular_avatar.core.editor
|
|||||||
|
|
||||||
public bool OnPreprocessAvatar(GameObject avatarGameObject)
|
public bool OnPreprocessAvatar(GameObject avatarGameObject)
|
||||||
{
|
{
|
||||||
|
BoneRemappings.Clear();
|
||||||
|
ToDelete.Clear();
|
||||||
|
|
||||||
var mergeArmatures = avatarGameObject.transform.GetComponentsInChildren<ModularAvatarMergeArmature>(true);
|
var mergeArmatures = avatarGameObject.transform.GetComponentsInChildren<ModularAvatarMergeArmature>(true);
|
||||||
|
|
||||||
BoneRemappings.Clear();
|
BoneRemappings.Clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user