From aa04a96264df929bebb2be4bae63d24a41cb39c5 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 27 Apr 2010 09:50:55 +0000 Subject: [PATCH] Never try to make a glwrap DrawFill over an empty mesh... --- wrap/gl/trimesh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrap/gl/trimesh.h b/wrap/gl/trimesh.h index d4ff8c3c..a75b5381 100644 --- a/wrap/gl/trimesh.h +++ b/wrap/gl/trimesh.h @@ -419,11 +419,11 @@ void Draw() template void DrawFill() { + if(m->fn==0) return; typename FACE_POINTER_CONTAINER::iterator fp; typename MESH_TYPE::FaceIterator fi; - typename std::vector::iterator fip; short curtexname=-1;