Updated JsonSchema of vrm.blendshape.bind #63

This commit is contained in:
ousttrue
2018-12-01 01:52:04 +09:00
parent 7bfb906ec0
commit 70cbaab48d
6 changed files with 20 additions and 6 deletions

View File

@@ -27,8 +27,13 @@ namespace VRM
[JsonSchema(Title = "vrm.blendshape.bind")]
public class glTF_VRM_BlendShapeBind : UniGLTF.JsonSerializableBase
{
[JsonSchema(Required = true, Minimum = 0)]
public int mesh = -1;
[JsonSchema(Required = true, Minimum = 0)]
public int index = -1;
[JsonSchema(Required =true, Minimum = 0, Maximum = 100, Description = @"SkinnedMeshRenderer.SetBlendShapeWeight")]
public float weight = 0;
protected override void SerializeMembers(GLTFJsonFormatter f)

Submodule UniGLTF updated: 71188cbb88...94a186fd65

View File

@@ -3,13 +3,18 @@
"type": "object",
"properties": {
"mesh": {
"type": "integer"
"type": "integer",
"minimum": 0
},
"index": {
"type": "integer"
"type": "integer",
"minimum": 0
},
"weight": {
"type": "number"
"description": "SkinnedMeshRenderer.SetBlendShapeWeight",
"type": "number",
"minimum": 0,
"maximum": 100
}
}
}

View File

@@ -24,6 +24,10 @@
"items": {
"$ref": "vrm.blendshape.materialbind.schema.json"
}
},
"isBinary": {
"description": "0 or 1. Do not allow an intermediate value. Value should rounded",
"type": "boolean"
}
}
}

View File

@@ -3,7 +3,7 @@
"type": "object",
"properties": {
"firstPersonBone": {
"description": "Specify a bone whose rendering mode should be switched in first-person view. Usually Head is specified.",
"description": "The bone whose rendering should be turned off in first-person view. Usually Head is specified.",
"type": "integer"
},
"firstPersonBoneOffset": {

View File

@@ -4,7 +4,7 @@
"type": "object",
"properties": {
"exporterVersion": {
"description": "Version of exporter that vrm created. UniVRM-0.44",
"description": "Version of exporter that vrm created. UniVRM-0.46",
"type": "string"
},
"meta": {