From 2d3d9bd13ff73874052faa63eeca7cab310817c6 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 21 May 2009 22:59:16 +0000 Subject: [PATCH] corrected wrong test on the use of faux edges when drawing in wireframe --- wrap/gl/trimesh.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/wrap/gl/trimesh.h b/wrap/gl/trimesh.h index a0d44302..73d955c5 100644 --- a/wrap/gl/trimesh.h +++ b/wrap/gl/trimesh.h @@ -614,7 +614,6 @@ void DrawWirePolygonal() typename FACE_POINTER_CONTAINER::iterator fp; typename std::vector::iterator fip; - short curtexname=-1; if(cm == CMPerMesh) glColor(m->C()); @@ -879,16 +878,16 @@ template void DrawWire() { //if(!(curr_hints & (HNUseEdgeStrip | HNUseLazyEdgeStrip) ) ) - if ( curr_hints & !HNIsPolygonal ) + if ( (curr_hints & HNIsPolygonal) ) + { + DrawWirePolygonal(); + } + else { glPushAttrib(GL_POLYGON_BIT); glPolygonMode(GL_FRONT_AND_BACK ,GL_LINE); DrawFill(); glPopAttrib(); - } - else - { - DrawWirePolygonal(); } // { // if(!HasEdges()) ComputeEdges();