From 5412f4eb714597187475528e8d09ea5f572c8eb0 Mon Sep 17 00:00:00 2001 From: "edward.vigmond" <edward.vigmond@u-bordeaux.fr> Date: Tue, 15 Sep 2020 13:09:57 +0200 Subject: [PATCH] Fixed opacity for dead data --- src/TBmeshWin.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/TBmeshWin.cc b/src/TBmeshWin.cc index 223c44c..ef98418 100644 --- a/src/TBmeshWin.cc +++ b/src/TBmeshWin.cc @@ -453,9 +453,10 @@ TBmeshWin::draw_surface(Surfaces* sf, GLfloat *&vbobuf, bool wf ) glPolygonMode( GL_FRONT_AND_BACK, GL_FILL ); - bool on_tr = ( showData && dopac_on ) || - ( !showData && s_colour[3]<OPAQUE_LIMIT ) || - ( showData && !dopac_on && s_colour[3]<OPAQUE_LIMIT); + bool on_tr = ( showData && dopac_on ) || + ( !showData && s_colour[3]<OPAQUE_LIMIT ) || + ( showData && !dopac_on && s_colour[3]<OPAQUE_LIMIT) || + ( cs->deadRange() && cs->deadColour()[3]<OPAQUE_LIMIT) ; if( on_tr ) translucency(true); sf->zsort( context(), stride, on_tr ); -- GitLab