Added blend_weights for animations and animation_controllers

This commit is contained in:
DaanV2
2021-05-10 20:26:09 +02:00
parent 64858af8b8
commit 0ec3926cec
3 changed files with 20 additions and 9 deletions

View File

@@ -14,7 +14,12 @@
"description": "A object specification on how to transition",
"maxProperties": 1,
"minProperties": 1,
"additionalProperties": { "$ref": "../../../molang/1.8.0/string.json" }
"additionalProperties": {
"oneOf": [
{ "type": "string", "$ref": "../../../molang/1.8.0/string.json" },
{ "type": "number", "description": "A blend weight" }
]
}
}
]
},
@@ -89,7 +94,7 @@
"title": "Animations",
"description": "The animations definition for 1.10.0",
"type": "array",
"items": { "$ref": "#/definitions/animationspec", "description": "TODO description: animations", "title": "Animations" }
"items": { "$ref": "#/definitions/animationspec", "title": "Animations" }
},
"blend_transition": {
"title": "Blend Transition",

View File

@@ -14,7 +14,12 @@
"description": "A object specification on how to transition",
"maxProperties": 1,
"minProperties": 1,
"additionalProperties": { "$ref": "../../../molang/1.8.0/string.json" }
"additionalProperties": {
"oneOf": [
{ "type": "string", "$ref": "../../../molang/1.8.0/string.json" },
{ "type": "number", "description": "A blend weight" }
]
}
}
]
},
@@ -78,7 +83,7 @@
"title": "Animations",
"description": "The animations definition for 1.10.0",
"type": "array",
"items": { "$ref": "#/definitions/animationspec", "description": "TODO description: animations", "title": "Animations" }
"items": { "$ref": "#/definitions/animationspec", "title": "Animations" }
},
"blend_transition": {
"title": "Blend Transition",
@@ -120,7 +125,7 @@
"description": "The transition definition for 1.8.0",
"minProperties": 1,
"type": "array",
"items": { "$ref": "#/definitions/animationspec", "description": "TODO description: transitions", "title": "Transitions" }
"items": { "$ref": "#/definitions/animationspec", "description": "The specification on when to transition to a new state", "title": "Transitions" }
},
"variables": {
"type": "object",

View File

@@ -84,7 +84,7 @@
"additionalProperties": false,
"type": "object",
"title": "Scripts",
"description": "TODO",
"description": "The place where variables, and animations / controller to be run is specified",
"properties": {
"animate": {
"type": "array",
@@ -101,9 +101,10 @@
"title": "Animation (Controller) Condition",
"description": "A single animation or animation controller to run on condition",
"additionalProperties": {
"type": "string",
"description": "A molang condition",
"title": "Molang"
"oneOf": [
{ "type": "string", "description": "A molang condition", "title": "Molang" },
{ "type": "number", "description": "Blend weight", "title": "Blend weight" }
]
}
}
]