mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-11 23:19:00 +08:00
Add process to be added to ClonedMenuMappings
This commit is contained in:
parent
f1b6ce585f
commit
908d0f3858
@ -119,6 +119,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
{
|
||||
BoneDatabase.ResetBones();
|
||||
PathMappings.Clear();
|
||||
ClonedMenuMappings.Clear();
|
||||
|
||||
try
|
||||
{
|
||||
@ -159,6 +160,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
{
|
||||
UnityEngine.Object.DestroyImmediate(component);
|
||||
}
|
||||
ClonedMenuMappings.Clear();
|
||||
}
|
||||
|
||||
FixupAnimatorDebugData(avatarGameObject);
|
||||
|
@ -192,6 +192,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
newMenu = Object.Instantiate(menu);
|
||||
AssetDatabase.CreateAsset(newMenu, Util.GenerateAssetPath());
|
||||
remapped[menu] = newMenu;
|
||||
ClonedMenuMappings.Add(menu, newMenu);
|
||||
|
||||
foreach (var control in newMenu.controls)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user