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();