Explorar o código

Merge pull request #4451 from Promit/promit/gltf-attrib-bug-fix

GLTF2 attribute name/parse bug fix
Kim Kulling %!s(int64=3) %!d(string=hai) anos
pai
achega
19f2a624a9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      code/AssetLib/glTF2/glTF2Asset.inl

+ 2 - 2
code/AssetLib/glTF2/glTF2Asset.inl

@@ -179,11 +179,11 @@ inline bool GetAttribVector(Mesh::Primitive &p, const char *attr, Mesh::Accessor
         v = &(p.attributes.texcoord);
         v = &(p.attributes.texcoord);
     } else if ((pos = Compare(attr, "COLOR"))) {
     } else if ((pos = Compare(attr, "COLOR"))) {
         v = &(p.attributes.color);
         v = &(p.attributes.color);
-    } else if ((pos = Compare(attr, "JOINT"))) {
+    } else if ((pos = Compare(attr, "JOINTS"))) {
         v = &(p.attributes.joint);
         v = &(p.attributes.joint);
     } else if ((pos = Compare(attr, "JOINTMATRIX"))) {
     } else if ((pos = Compare(attr, "JOINTMATRIX"))) {
         v = &(p.attributes.jointmatrix);
         v = &(p.attributes.jointmatrix);
-    } else if ((pos = Compare(attr, "WEIGHT"))) {
+    } else if ((pos = Compare(attr, "WEIGHTS"))) {
         v = &(p.attributes.weight);
         v = &(p.attributes.weight);
     } else
     } else
         return false;
         return false;