fix expression editor and migration

This commit is contained in:
ousttrue 2021-01-27 15:11:24 +09:00
parent a57e30e3ba
commit 3720fb1341
2 changed files with 6 additions and 4 deletions

View File

@ -16,9 +16,11 @@ namespace UniVRM10
/// * モデル変更時の改変への強さ
///
/// </summary>
public readonly String RelativePath;
public readonly int Index;
public readonly float Weight;
// シリアライズしてEditorから変更するので readonly 不可
public /*readonly*/ String RelativePath;
public /*readonly*/ int Index;
public /*readonly*/ float Weight;
/// <summary>
///

View File

@ -445,7 +445,7 @@ namespace UniVRM10
{
var meshIndex = x["mesh"].GetInt32();
var morphTargetIndex = x["index"].GetInt32();
var weight = x["weight"].GetInt32() * 0.01f;
var weight = x["weight"].GetInt32();
var bind = new UniGLTF.Extensions.VRMC_vrm.MorphTargetBind();