Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
poi-vrc committed Feb 1, 2024
1 parent 2486f5a commit 6129688
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Editor/Menu/VRChat/VRCMenuUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ private static MenuItemController[] ParametersToItemControllers(float value, VRC

private static void ItemControllerToAnimatorParameter(MenuItemController ctrl, out VRCExpressionsMenu.Control.Parameter parameter, out float value)
{
if (ctrl == null)
{
// no controller
parameter = new VRCExpressionsMenu.Control.Parameter() { name = "" };
value = 0.0f;
return;
}

if (!(ctrl is AnimatorParameterController animParamCtrl))
{
throw new NotImplementedException("Non animator parameter item controllers are not implemented yet.");
Expand Down

0 comments on commit 6129688

Please sign in to comment.