From aed519b7737cf57e80a8561d8e31f111b0e19c05 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Wed, 18 Dec 2024 00:47:27 +0900 Subject: [PATCH] fix: menu icon in submenu are not fixed --- Editor/FixupPasses/FixupExpressionsMenuPass.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Editor/FixupPasses/FixupExpressionsMenuPass.cs b/Editor/FixupPasses/FixupExpressionsMenuPass.cs index 4f36ec2b..a7a08e2b 100644 --- a/Editor/FixupPasses/FixupExpressionsMenuPass.cs +++ b/Editor/FixupPasses/FixupExpressionsMenuPass.cs @@ -93,6 +93,11 @@ namespace nadena.dev.modular_avatar.core.editor control.icon = newIcon; } + if (control.subMenu != null) + { + VisitMenu(control.subMenu); + } + if (control.labels != null) { for (int i = 0; i < control.labels.Length; i++) @@ -163,4 +168,4 @@ namespace nadena.dev.modular_avatar.core.editor } } -#endif \ No newline at end of file +#endif