Skip to content

Commit

Permalink
fix: menu icon in submenu are not fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Dec 17, 2024
1 parent cca9e22 commit aed519b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Editor/FixupPasses/FixupExpressionsMenuPass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ void VisitMenu(VRCExpressionsMenu menu)
control.icon = newIcon;
}

if (control.subMenu != null)
{
VisitMenu(control.subMenu);
}

if (control.labels != null)
{
for (int i = 0; i < control.labels.Length; i++)
Expand Down Expand Up @@ -163,4 +168,4 @@ private static bool IsCompressedFormat(TextureFormat format)
}
}

#endif
#endif

0 comments on commit aed519b

Please sign in to comment.