@@ -1897,6 +1897,13 @@ class GeometryParser {
materialIndex = getData( polygonVertexIndex, polygonIndex, vertexIndex, geoInfo.material )[ 0 ];
+ if ( materialIndex < 0 ) {
+
+ console.warn( 'THREE.FBXLoader: Invalid material index:', materialIndex );
+ materialIndex = 0;
+ }
}
if ( geoInfo.uv ) {