This commit is contained in:
ousttrue 2021-10-27 22:05:30 +09:00
parent 71f1eb32b0
commit bfb4e74489

View File

@ -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)
{