|
@@ -1786,7 +1786,6 @@ class GeometryParser {
|
|
|
|
|
|
let polygonIndex = 0;
|
|
|
let faceLength = 0;
|
|
|
- let polygonSides = 0;
|
|
|
let displayedWeightsWarning = false;
|
|
|
|
|
|
// these will hold data for a single face
|
|
@@ -1815,14 +1814,6 @@ class GeometryParser {
|
|
|
vertexIndex = vertexIndex ^ - 1; // equivalent to ( x * -1 ) - 1
|
|
|
endOfFace = true;
|
|
|
|
|
|
- if ( polygonSides > 3 ) console.warn( 'THREE.FBXLoader: Polygons with more than three sides are not supported. Make sure to triangulate the geometry during export.' );
|
|
|
-
|
|
|
- polygonSides = 0;
|
|
|
-
|
|
|
- } else {
|
|
|
-
|
|
|
- polygonSides ++;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
let weightIndices = [];
|
|
@@ -1952,6 +1943,8 @@ class GeometryParser {
|
|
|
|
|
|
if ( endOfFace ) {
|
|
|
|
|
|
+ if ( faceLength > 4 ) console.warn( 'THREE.FBXLoader: Polygons with more than four sides are not supported. Make sure to triangulate the geometry during export.' );
|
|
|
+
|
|
|
scope.genFace( buffers, geoInfo, facePositionIndexes, materialIndex, faceNormals, faceColors, faceUVs, faceWeights, faceWeightIndices, faceLength );
|
|
|
|
|
|
polygonIndex ++;
|