Skip to content

smokeview source: use clipping planes storerd with view points unless… #1368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/smokeview/camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ void CopyCamera(cameradata *to, cameradata *from){
UpdateGluiZoom();
}
to->dirty=1;
if(to == camera_current && updateclipvals == 0 && reset_clipvals == 1){
Cam2Clip(camera_current);
if(to == camera_current && updateclipvals == 0){
if(clip_mode==0)Cam2Clip(camera_current);
}
if(to==camera_current&&to->quat_defined==1){
quat_general[0]=to->quaternion[0];
Expand Down
2 changes: 0 additions & 2 deletions Source/smokeview/glui_clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ void ClipCB(int var){
case SPINNER_zlower:
case SPINNER_zupper:
updatefacelists = 1;
reset_clipvals = 0;
break;
default:
ASSERT(FFALSE);
Expand Down Expand Up @@ -204,7 +203,6 @@ void ClipCB(int var){
camera_current->ymax = clipinfo.ymax;
camera_current->zmin = clipinfo.zmin;
camera_current->zmax = clipinfo.zmax;
reset_clipvals = 0;
break;
default:
ASSERT(FFALSE);
Expand Down
1 change: 0 additions & 1 deletion Source/smokeview/smokeviewvars.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "glutbitmap.h"
#endif

SVEXTERN int SVDECL(reset_clipvals, 1);
SVEXTERN int SVDECL(update_slicexyz, 0);
SVEXTERN int SVDECL(update_splitcolorbar, 0);
SVEXTERN int SVDECL(slice_plot_bound_option, 1);
Expand Down