Skip to content

Commit

Permalink
fix: add support for u16 joint indices in meshAttributes schema (#23)
Browse files Browse the repository at this point in the history
Task: TECHART-354
  • Loading branch information
Olaf-Wolf3D authored Dec 13, 2023
1 parent a64e5a1 commit b897f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schemas/meshAttributes.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"type": "string",
"enum": [
"JOINTS_0:u8",
"JOINTS_0:u16",
"NORMAL:f32",
"POSITION:f32",
"TEXCOORD_0:f32",
Expand All @@ -39,7 +40,7 @@
},
"contains": {
"type": "string",
"pattern": "JOINTS_0:u8|NORMAL:f32|POSITION:f32|TEXCOORD_0:f32|WEIGHTS_0:f32",
"pattern": "JOINTS_0:u8|JOINTS_0:u16|NORMAL:f32|POSITION:f32|TEXCOORD_0:f32|WEIGHTS_0:f32",
"errorMessage": "Mesh ${2/name} requires at least 5 vertex attributes: position, normal, 1 UV set, joint influences, and weights. Found ${1/length} attributes: ${1}."
},
"minContains": 5,
Expand Down

0 comments on commit b897f48

Please sign in to comment.