mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2025-02-17 08:03:55 -05:00
Merge pull request #120 from AnalyticalGraphicsInc/loading-fix
Don't add a face that contains only two vertices
This commit is contained in:
commit
09271d284a
@ -465,7 +465,9 @@ function loadObj(objPath, options) {
|
|||||||
faceUvs.push(result[2]);
|
faceUvs.push(result[2]);
|
||||||
faceNormals.push(result[3]);
|
faceNormals.push(result[3]);
|
||||||
}
|
}
|
||||||
|
if (faceVertices.length > 2) {
|
||||||
addFace(faceVertices, facePositions, faceUvs, faceNormals);
|
addFace(faceVertices, facePositions, faceUvs, faceNormals);
|
||||||
|
}
|
||||||
|
|
||||||
faceVertices.length = 0;
|
faceVertices.length = 0;
|
||||||
facePositions.length = 0;
|
facePositions.length = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user