Skip to content
Snippets Groups Projects
Commit 5c66d068 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Don't draw dirty curves/surfaces!

parent 9b20229e
No related branches found
No related tags found
No related merge requests found
// $Id: Geom.cpp,v 1.25 2001-08-03 21:27:20 geuzaine Exp $
// $Id: Geom.cpp,v 1.26 2001-08-10 10:06:38 geuzaine Exp $
#include "Gmsh.h"
#include "GmshUI.h"
......@@ -80,7 +80,7 @@ void Draw_Curve (void *a, void *b){
c = *(Curve**)a;
if(c->Num<0 || !EntiteEstElleVisible(c->Num)) return;
if(c->Dirty || c->Num<0 || !EntiteEstElleVisible(c->Num)) return;
if(CTX.render_mode == GMSH_SELECT){
glLoadName(1);
......@@ -478,7 +478,7 @@ void Draw_Surface (void *a, void *b){
s = *(Surface**)a;
if(!s || !s->Support || !EntiteEstElleVisible(s->Num)) return;
if(s->Dirty || !s || !s->Support || !EntiteEstElleVisible(s->Num)) return;
if(CTX.render_mode == GMSH_SELECT){
glLoadName(2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment