Skip to content

Commit

Permalink
Merge pull request #27 from noir-neo/fix-perfect-sync
Browse files Browse the repository at this point in the history
Fix custom expression key
  • Loading branch information
noir-neo authored Nov 18, 2023
2 parents 3e37732 + 8d11917 commit 3ec6388
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Assets/Hatbor/Scripts/Rig/VMC/VmcExpressionRig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -47,7 +48,7 @@ static string ConvertVrm0ToVrm1Preset(string expressionName)
"o" => "oh",
"blink_l" => "blinkleft",
"blink_r" => "blinkright",
_ => expressionName
_ => expressionNameLower
};
}
}
Expand Down

0 comments on commit 3ec6388

Please sign in to comment.