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

tweak automatic polygon offset check
parent 50e58797
No related branches found
No related tags found
No related merge requests found
// $Id: Draw.cpp,v 1.79 2005-10-09 18:00:54 geuzaine Exp $ // $Id: Draw.cpp,v 1.80 2005-11-19 14:59:41 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -45,9 +45,9 @@ int NeedPolygonOffset() ...@@ -45,9 +45,9 @@ int NeedPolygonOffset()
for(int i = 0; i < List_Nbr(CTX.post.list); i++){ for(int i = 0; i < List_Nbr(CTX.post.list); i++){
Post_View *v = *(Post_View**)List_Pointer(CTX.post.list, i); Post_View *v = *(Post_View**)List_Pointer(CTX.post.list, i);
if(v->Visible){ if(v->Visible){
if(v->ShowElement || v->Axes) if(v->ShowElement)
return 1; return 1;
if((v->NbST || v->NbSQ) && (v->IntervalsType == DRAW_POST_ISO)) if((v->NbST || v->NbSQ) && (v->Axes || v->IntervalsType == DRAW_POST_ISO))
return 1; return 1;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment