diff --git a/wrap/io_trimesh/import_obj.h b/wrap/io_trimesh/import_obj.h index 511bc956..ea3fed39 100644 --- a/wrap/io_trimesh/import_obj.h +++ b/wrap/io_trimesh/import_obj.h @@ -468,6 +468,8 @@ namespace vcg { #ifdef __gl_h_ //qDebug("OK: using opengl tessellation for a polygon of %i verteces",vertexesPerFace); vcg::glu_tesselator::tesselate(polygonVect, indexTriangulatedVect); + if(indexTriangulatedVect.size()==0) + FanTessellator(polygonVect, indexTriangulatedVect); #else //qDebug("Warning: using fan tessellation for a polygon of %i verteces",vertexesPerFace); FanTessellator(polygonVect, indexTriangulatedVect);