Fix null in generated submenus breaking av3emu

This commit is contained in:
bd_ 2022-11-24 18:00:18 -08:00
parent 0f2cd6a365
commit 3f65250c64

View File

@ -1,9 +1,11 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
using VRC.SDK3.Avatars.Components;
using VRC.SDK3.Avatars.ScriptableObjects;
using Object = UnityEngine.Object;
namespace nadena.dev.modular_avatar.core.editor
{
@ -72,7 +74,13 @@ namespace nadena.dev.modular_avatar.core.editor
{
name = "More",
type = VRCExpressionsMenu.Control.ControlType.SubMenu,
subMenu = newMenu
subMenu = newMenu,
parameter = new VRCExpressionsMenu.Control.Parameter()
{
name = ""
},
subParameters = Array.Empty<VRCExpressionsMenu.Control.Parameter>(),
labels = Array.Empty<VRCExpressionsMenu.Control.Label>(),
});
_installTargets[installer.installTargetMenu] = newMenu;