Migration.Check

This commit is contained in:
ousttrue
2021-01-21 18:10:34 +09:00
parent ca8359954f
commit e39f93436e
2 changed files with 7 additions and 2 deletions

View File

@@ -438,6 +438,12 @@ namespace UniVRM10
throw new NotImplementedException();
}
}
public static void Check(ListTreeNode<JsonValue> vrm0, UniGLTF.Extensions.VRMC_vrm.VRMC_vrm vrm1)
{
Migration.CheckMeta(vrm0["meta"], vrm1.Meta);
Migration.CheckHumanoid(vrm0["humanoid"], vrm1.Humanoid);
}
#endregion
}
}

View File

@@ -53,8 +53,7 @@ namespace UniVRM10
var VRMC_vrm = GetVRMC_vrm(gltf.extensions);
Assert.NotNull(VRMC_vrm);
Migration.CheckMeta(vrm0Json["meta"], VRMC_vrm.Meta);
Migration.CheckHumanoid(vrm0Json["humanoid"], VRMC_vrm.Humanoid);
Migration.Check(vrm0Json, VRMC_vrm);
}
}
}