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

more intuitive behaviour of geometry+mesh selection
parent 9dc1e30e
No related branches found
No related tags found
No related merge requests found
// $Id: Callbacks.cpp,v 1.330 2005-01-18 00:12:34 geuzaine Exp $ // $Id: Callbacks.cpp,v 1.331 2005-01-18 04:29:22 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -966,11 +966,19 @@ void select_vis_browser(int mode) ...@@ -966,11 +966,19 @@ void select_vis_browser(int mode)
Entity *e; Entity *e;
for(i = 1; i <= WID->vis_browser->size(); i++) { for(i = 1; i <= WID->vis_browser->size(); i++) {
e = (Entity *) WID->vis_browser->data(i); e = (Entity *) WID->vis_browser->data(i);
if((mode == VIS_GEOM | VIS_MESH && e->Visible() == mode) || if((mode & VIS_GEOM) && (mode & VIS_MESH)){
(mode == VIS_GEOM && e->Visible() & VIS_GEOM) || if((e->Visible() & VIS_GEOM) && (e->Visible() & VIS_MESH))
(mode == VIS_MESH && e->Visible() & VIS_MESH))
WID->vis_browser->select(i); WID->vis_browser->select(i);
} }
else if(mode & VIS_GEOM){
if(e->Visible() & VIS_GEOM)
WID->vis_browser->select(i);
}
else if(mode & VIS_MESH){
if(e->Visible() & VIS_MESH)
WID->vis_browser->select(i);
}
}
} }
void visibility_cb(CALLBACK_ARGS) void visibility_cb(CALLBACK_ARGS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment