diff --git a/Assets/Hatbor/Scripts/Rig/VMC/VmcExpressionRig.cs b/Assets/Hatbor/Scripts/Rig/VMC/VmcExpressionRig.cs index 60e7611..7b828b4 100644 --- a/Assets/Hatbor/Scripts/Rig/VMC/VmcExpressionRig.cs +++ b/Assets/Hatbor/Scripts/Rig/VMC/VmcExpressionRig.cs @@ -34,7 +34,8 @@ void IExpressionRig.Update(Vrm10RuntimeExpression expression) static string ConvertVrm0ToVrm1Preset(string expressionName) { - return expressionName.ToLower() switch + var expressionNameLower = expressionName.ToLower(); + return expressionNameLower switch { "joy" => "happy", "angry" => "angry", @@ -47,7 +48,7 @@ static string ConvertVrm0ToVrm1Preset(string expressionName) "o" => "oh", "blink_l" => "blinkleft", "blink_r" => "blinkright", - _ => expressionName + _ => expressionNameLower }; } }