From be699a7a64e6887d71c035f53cfdc11e25293f64 Mon Sep 17 00:00:00 2001 From: mochi-neko Date: Wed, 9 Aug 2023 17:13:55 +0900 Subject: [PATCH] Improve reset --- .../FacialExpressions.Extensions/VRM/VRMEyelidMorpher.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Mochineko/FacialExpressions.Extensions/VRM/VRMEyelidMorpher.cs b/Assets/Mochineko/FacialExpressions.Extensions/VRM/VRMEyelidMorpher.cs index b3d8fb9..7d963f6 100644 --- a/Assets/Mochineko/FacialExpressions.Extensions/VRM/VRMEyelidMorpher.cs +++ b/Assets/Mochineko/FacialExpressions.Extensions/VRM/VRMEyelidMorpher.cs @@ -52,9 +52,9 @@ public float GetWeightOf(Eyelid eyelid) public void Reset() { - MorphInto(new EyelidSample(Eyelid.Both, weight: 0f)); - MorphInto(new EyelidSample(Eyelid.Left, weight: 0f)); - MorphInto(new EyelidSample(Eyelid.Right, weight: 0f)); + expression.SetWeight(ExpressionKey.BlinkLeft, 0f); + expression.SetWeight(ExpressionKey.BlinkRight, 0f); + expression.SetWeight(ExpressionKey.Blink, 0f); } } }