mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-27 10:30:16 -05:00
Don't add a face that contains only two vertices
This commit is contained in:
parent
e85d64f021
commit
2869560aab
@ -465,7 +465,9 @@ function loadObj(objPath, options) {
|
||||
faceUvs.push(result[2]);
|
||||
faceNormals.push(result[3]);
|
||||
}
|
||||
if (faceVertices.length > 2) {
|
||||
addFace(faceVertices, facePositions, faceUvs, faceNormals);
|
||||
}
|
||||
|
||||
faceVertices.length = 0;
|
||||
facePositions.length = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user