diff --git a/code/AssetLib/glTF2/glTF2Asset.inl b/code/AssetLib/glTF2/glTF2Asset.inl index ec481a729834944a48ab11a4d0843927916483c1..a74866e6ce9d565b46df04a75c23752e9d4afe4d 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;