mirror of https://github.com/CesiumGS/obj2gltf.git
Fix primitive.primitive -> primitive.mode
This commit is contained in:
parent
e1bee3b587
commit
d384d3f778
|
@ -314,7 +314,7 @@ function createGltf(data, modelName, inputPath, outputPath, binary, embed, techn
|
||||||
attributes : gltfAttributes,
|
attributes : gltfAttributes,
|
||||||
indices : getAccessorIndexId(i),
|
indices : getAccessorIndexId(i),
|
||||||
material : getMaterialId(primitives[i].material),
|
material : getMaterialId(primitives[i].material),
|
||||||
primitive : WebGLConstants.TRIANGLES
|
mode : WebGLConstants.TRIANGLES
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue