mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-09 04:19:42 -05:00
Rename schemaVersion to specVersion
This commit is contained in:
@@ -635,7 +635,7 @@ namespace VRM
|
||||
EnableDiagnosisForNotRequiredFields = true,
|
||||
};
|
||||
var json2 = JsonSchema.FromType<glTF_VRM_extensions>().Serialize(model, c);
|
||||
Assert.AreEqual(@"{""exporterVersion"":""UniVRM-0.50"",""schemaVersion"":""0.0""}",json2);
|
||||
Assert.AreEqual(@"{""exporterVersion"":""UniVRM-0.50"",""specVersion"":""0.0""}",json2);
|
||||
}
|
||||
|
||||
// TODO: Move to another suitable location
|
||||
|
||||
@@ -37,8 +37,8 @@ VRM extension is for 3d humanoid avatars (and models) in VR applications.
|
||||
[JsonSchema(Description = @"Version of exporter that vrm created. " + VRMVersion.VRM_VERSION)]
|
||||
public string exporterVersion = "UniVRM-" + VRMVersion.VERSION;
|
||||
|
||||
[JsonSchema(Description = @"Version of JSON Schema for VRM")]
|
||||
public string schemaVersion = VRMSchemaVersion.Version;
|
||||
[JsonSchema(Description = @"The VRM specification version that this extension uses")]
|
||||
public string specVersion = VRMSpecVersion.Version;
|
||||
|
||||
public glTF_VRM_Meta meta = new glTF_VRM_Meta();
|
||||
public glTF_VRM_Humanoid humanoid = new glTF_VRM_Humanoid();
|
||||
@@ -50,7 +50,7 @@ VRM extension is for 3d humanoid avatars (and models) in VR applications.
|
||||
protected override void SerializeMembers(GLTFJsonFormatter f)
|
||||
{
|
||||
f.KeyValue(() => exporterVersion);
|
||||
f.KeyValue(() => schemaVersion);
|
||||
f.KeyValue(() => specVersion);
|
||||
f.Key("meta"); f.GLTFValue(meta);
|
||||
f.Key("humanoid"); f.GLTFValue(humanoid);
|
||||
f.Key("firstPerson"); f.GLTFValue(firstPerson);
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
|
||||
namespace VRM
|
||||
{
|
||||
public class VRMSchemaVersion
|
||||
public class VRMSpecVersion
|
||||
{
|
||||
public const int Major = 0;
|
||||
public const int Minor = 0;
|
||||
Reference in New Issue
Block a user