mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: self-referencing menus result in stack overflow (#827)
Closes: #826, #810
This commit is contained in:
parent
a88385a0da
commit
84ab43b2af
@ -141,7 +141,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
|
||||
foreach (var control in newMenu.controls)
|
||||
{
|
||||
if (control.type == VRCExpressionsMenu.Control.ControlType.SubMenu)
|
||||
if (control.type == VRCExpressionsMenu.Control.ControlType.SubMenu && control.subMenu != newMenu)
|
||||
{
|
||||
control.subMenu = CloneMenu(control.subMenu);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user