mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-25 12:05:08 -05:00
fix lookAtType migration
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user