Skip to content

Commit

Permalink
smokeview source: draw both sides of a blockage face if case has remo…
Browse files Browse the repository at this point in the history
…vable blockages
  • Loading branch information
gforney committed Jan 23, 2025
1 parent db6c586 commit 38d8928
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Source/smokeview/glui_clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ void ClipCB(int var){
CHECKBOX_clip_xmax->enable();
CHECKBOX_clip_ymax->enable();
CHECKBOX_clip_zmax->enable();
show_bothsides_blockages = 1;
global_scase.updatefaces = 1;
}
else{
Expand All @@ -160,9 +159,15 @@ void ClipCB(int var){
CHECKBOX_clip_xmax->disable();
CHECKBOX_clip_ymax->disable();
CHECKBOX_clip_zmax->disable();
show_bothsides_blockages = 0;
global_scase.updatefaces = 1;
}
// draw both sides of blockage faces if clipping is on or if the case has removeable blokcages
if(clip_mode != CLIP_OFF || global_scase.have_removable_obsts == 1){
show_bothsides_blockages = 1;
}
else{
show_bothsides_blockages = 0;
}
break;
case SPINNER_xlower:
case SPINNER_xupper:
Expand Down

0 comments on commit 38d8928

Please sign in to comment.