From 765b38cf04a7c0e4575f594533eb6e12a6d98cd8 Mon Sep 17 00:00:00 2001 From: Promit Roy Date: Wed, 16 Mar 2022 16:49:45 -0400 Subject: [PATCH] Update glTF2Asset.inl Fixing mistakes in attribute names for GLTF. This causes attribute index to not be parsed out correctly (e.g. JOINTS_1) and fails the scene load. --- code/AssetLib/glTF2/glTF2Asset.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/AssetLib/glTF2/glTF2Asset.inl b/code/AssetLib/glTF2/glTF2Asset.inl index ec481a729..a74866e6c 100644 --- a/code/AssetLib/glTF2/glTF2Asset.inl +++ b/code/AssetLib/glTF2/glTF2Asset.inl @@ -179,11 +179,11 @@ inline bool GetAttribVector(Mesh::Primitive &p, const char *attr, Mesh::Accessor v = &(p.attributes.texcoord); } else if ((pos = Compare(attr, "COLOR"))) { v = &(p.attributes.color); - } else if ((pos = Compare(attr, "JOINT"))) { + } else if ((pos = Compare(attr, "JOINTS"))) { v = &(p.attributes.joint); } else if ((pos = Compare(attr, "JOINTMATRIX"))) { v = &(p.attributes.jointmatrix); - } else if ((pos = Compare(attr, "WEIGHT"))) { + } else if ((pos = Compare(attr, "WEIGHTS"))) { v = &(p.attributes.weight); } else return false;