From bfb4e74489c2f2a756ee75683fcf2729fb059256 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 27 Oct 2021 22:05:30 +0900 Subject: [PATCH] fix test --- Assets/VRM10/Runtime/Migration/MigrationVrmExpression.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/VRM10/Runtime/Migration/MigrationVrmExpression.cs b/Assets/VRM10/Runtime/Migration/MigrationVrmExpression.cs index a65656b3a..6bf153a6a 100644 --- a/Assets/VRM10/Runtime/Migration/MigrationVrmExpression.cs +++ b/Assets/VRM10/Runtime/Migration/MigrationVrmExpression.cs @@ -253,7 +253,7 @@ namespace UniVRM10 throw new MigrationException($"expression.{name}.binds.index", $"{index} != {r.Index}"); } - var weight = l["weight"].GetSingle(); + var weight = l["weight"].GetSingle() * 0.01f; // [0, 100] to [0, 1.0f] if (weight != r.Weight) { throw new MigrationException($"expression.{name}.binds.weight", $"{weight} != {r.Weight}"); @@ -265,7 +265,6 @@ namespace UniVRM10 { foreach (var blendShape in vrm0["blendShapeGroups"].ArrayItems()) { - Debug.Log($"{blendShape}"); var name = blendShape["presetName"].GetString().ToLower(); switch (name) {