From 5c66d068b63c0d34d21f6ba17dc1de5968d83be0 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 10 Aug 2001 10:06:38 +0000
Subject: [PATCH] Don't draw dirty curves/surfaces!

---
 Graphics/Geom.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Graphics/Geom.cpp b/Graphics/Geom.cpp
index afff52aad3..b1ccacbc9c 100644
--- a/Graphics/Geom.cpp
+++ b/Graphics/Geom.cpp
@@ -1,4 +1,4 @@
-// $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);
-- 
GitLab