From 0dc81ba7a1c309bbb714ecaef7de98fb8ce1cb13 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 26 Feb 2025 19:42:34 +0900 Subject: [PATCH] =?UTF-8?q?LookAt=20=E3=81=AF=20DefaultExpressionValidator?= =?UTF-8?q?.Validate=20=E3=82=88=E3=82=8A=E3=81=82=E3=81=A8=E3=81=A7?= =?UTF-8?q?=E5=87=A6=E7=90=86=E3=81=95=E3=82=8C=E3=81=A6=20IsBinary=20?= =?UTF-8?q?=E3=81=AE=E9=96=BE=E5=80=A4=E3=81=8C=200=20=E3=81=A7=E3=81=82?= =?UTF-8?q?=E3=81=A3=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see DefaultExpressionValidator.Validate var weight = expression.IsBinary ? Mathf.Round(inputWeights[key]) : inputWeights[key]; --- Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs b/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs index 61cded5fc..791397b22 100644 --- a/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs +++ b/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs @@ -63,7 +63,7 @@ namespace UniVRM10 if (clip.IsBinary) { - value = value > 0 ? 1 : 0; + value = value > 0.5f ? 1 : 0; } m_morphTargetBindingMerger.AccumulateValue(key, value);