Merge pull request #763 from ousttrue/fix/springbone_menu

restore SaveSpringBoneToJSON
This commit is contained in:
ousttrue
2021-03-01 14:34:56 +09:00
committed by GitHub

View File

@@ -59,7 +59,9 @@ namespace VRM
spring.boneGroups.Add
);
// File.WriteAllText(path, spring.ToJson());
var f = new UniJSON.JsonFormatter();
VRM.VRMSerializer.Serialize_vrm_secondaryAnimation(f, spring);
File.WriteAllBytes(path, f.GetStore().Bytes.ToArray());
}
#endregion