diff --git a/Graphics/Mesh.cpp b/Graphics/Mesh.cpp index 343de43776da64e26ffb228b53d8461b7b1976f7..f9a2bcc48f7a5aad9e049029573890553264e8e4 100644 --- a/Graphics/Mesh.cpp +++ b/Graphics/Mesh.cpp @@ -1,4 +1,4 @@ -// $Id: Mesh.cpp,v 1.34 2001-07-31 10:41:38 geuzaine Exp $ +// $Id: Mesh.cpp,v 1.35 2001-07-31 11:48:27 geuzaine Exp $ #include "Gmsh.h" #include "GmshUI.h" @@ -75,7 +75,7 @@ void Draw_Mesh (Mesh *M) { if(CTX.mesh.hidden) glEnable(GL_POLYGON_OFFSET_FILL); // draw the bbox of the mesh in fast redraw mode if there is no geometry - if(!CTX.mesh.draw && !Tree_Nbr(M->Points)){ + if(!CTX.mesh.draw && Tree_Nbr(M->Vertices) && !Tree_Nbr(M->Points)){ glColor4ubv((GLubyte*)&CTX.color.fg); glBegin(GL_LINE_LOOP); glVertex3d(CTX.min[0], CTX.min[1], CTX.min[2]);