From 0f221f2d99c6d93605352a006b280605a0b9c3fa Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 8 Apr 2010 16:52:23 +0000 Subject: [PATCH] added suppor for per vertex tex coord rendering --- wrap/gl/trimesh.h | 6 ++++++ 1 file changed, 6 insertions(+) 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()))