diff --git a/wrap/gl/trimesh.h b/wrap/gl/trimesh.h index c806acc6..87c7b9cc 100644 --- a/wrap/gl/trimesh.h +++ b/wrap/gl/trimesh.h @@ -540,6 +540,12 @@ void DrawFill() } } + if(tm==TMPerVert && !TMId.empty()) // in the case of per vertex tex coord we assume that we have a SINGLE texture. + { + curtexname = 0; + glEnable(GL_TEXTURE_2D); + glBindTexture(GL_TEXTURE_2D,TMId[curtexname]); + } glBegin(GL_TRIANGLES); while( (partial)?(fp!=face_pointers.end()):(fi!=m->face.end()))