fix lookAtType migration

This commit is contained in:
ousttrue
2021-04-12 19:49:24 +09:00
parent 6977424196
commit 7889f759c7

View File

@@ -21,7 +21,13 @@ namespace UniVRM10
static LookAtType MigrateLookAtType(JsonNode vrm0)
{
return (LookAtType)Enum.Parse(typeof(LookAtType), vrm0.GetString(), true);
switch (vrm0.GetString().ToLower())
{
case "bone": return LookAtType.bone;
case "blendshape": return LookAtType.expression;
}
throw new NotImplementedException();
}
static FirstPersonType MigrateFirstPersonType(JsonNode vrm0)