From 06a473eaec244068bb613932769dc10c63dcaed2 Mon Sep 17 00:00:00 2001 From: bd_ Date: Sun, 13 Aug 2023 21:36:04 +0900 Subject: [PATCH] fix: menu installer GUI selection window is broken (#392) Fixes #391 --- .../Editor/Inspector/Menu/MenuInstallerEditor.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Packages/nadena.dev.modular-avatar/Editor/Inspector/Menu/MenuInstallerEditor.cs b/Packages/nadena.dev.modular-avatar/Editor/Inspector/Menu/MenuInstallerEditor.cs index b830679c..331dd3c0 100644 --- a/Packages/nadena.dev.modular-avatar/Editor/Inspector/Menu/MenuInstallerEditor.cs +++ b/Packages/nadena.dev.modular-avatar/Editor/Inspector/Menu/MenuInstallerEditor.cs @@ -223,6 +223,12 @@ namespace nadena.dev.modular_avatar.core.editor DestroyInstallTargets(); } + if (menu is ValueTuple vt) // TODO: This should be a named type... + { + // Menu, ContextCallback + menu = vt.Item1; + } + if (menu is ModularAvatarMenuItem item) { if (item.MenuSource == SubmenuSource.MenuAsset)