From b897f4872141f080bdafd481bb4efbc6197055db Mon Sep 17 00:00:00 2001 From: Olaf Haag <83961384+Olaf-Wolf3D@users.noreply.github.com> Date: Wed, 13 Dec 2023 23:39:10 +0100 Subject: [PATCH] fix: add support for u16 joint indices in meshAttributes schema (#23) Task: TECHART-354 --- schemas/meshAttributes.schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schemas/meshAttributes.schema.json b/schemas/meshAttributes.schema.json index fd0405d..310be42 100644 --- a/schemas/meshAttributes.schema.json +++ b/schemas/meshAttributes.schema.json @@ -29,6 +29,7 @@ "type": "string", "enum": [ "JOINTS_0:u8", + "JOINTS_0:u16", "NORMAL:f32", "POSITION:f32", "TEXCOORD_0:f32", @@ -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,