From 4cfffc32f29c054f960db551cb7dc877d3f429cc Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 28 Apr 2010 15:02:05 +0000 Subject: [PATCH] corrected managment of per-mesh color for point clouds --- wrap/gl/trimesh.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrap/gl/trimesh.h b/wrap/gl/trimesh.h index a75b5381..2bcc3ec9 100644 --- a/wrap/gl/trimesh.h +++ b/wrap/gl/trimesh.h @@ -738,6 +738,9 @@ void DrawPoints() } else { + if(cm==CMPerMesh) + glColor(m->C()); + // Perfect case, no deleted stuff, // draw the vertices using vertex arrays if (nm==NMPerVert)