Use `forceNumber` argument of `WriteAttrs` to write correct attribute names, instead

pull/1423/head
Daniel Hritzkiv 2017-09-08 15:58:09 -04:00
parent 990fe143a1
commit b1a5ca4516
No known key found for this signature in database
GPG Key ID: D1D19875679D5CBF
1 changed files with 4 additions and 4 deletions

View File

@ -380,10 +380,10 @@ namespace glTF2 {
{ {
WriteAttrs(w, attrs, p.attributes.position, "POSITION"); WriteAttrs(w, attrs, p.attributes.position, "POSITION");
WriteAttrs(w, attrs, p.attributes.normal, "NORMAL"); WriteAttrs(w, attrs, p.attributes.normal, "NORMAL");
WriteAttrs(w, attrs, p.attributes.texcoord, "TEXCOORD_0", true); WriteAttrs(w, attrs, p.attributes.texcoord, "TEXCOORD", true);
WriteAttrs(w, attrs, p.attributes.color, "COLOR_0"); WriteAttrs(w, attrs, p.attributes.color, "COLOR", true);
WriteAttrs(w, attrs, p.attributes.joint, "JOINTS_0"); WriteAttrs(w, attrs, p.attributes.joint, "JOINTS", true);
WriteAttrs(w, attrs, p.attributes.weight, "WEIGHTS_0"); WriteAttrs(w, attrs, p.attributes.weight, "WEIGHTS", true);
} }
prim.AddMember("attributes", attrs, w.mAl); prim.AddMember("attributes", attrs, w.mAl);
} }