Skip to content

Commit

Permalink
Merge pull request #1612 from gforney/devel
Browse files Browse the repository at this point in the history
make colorbar code more flexible
  • Loading branch information
gforney committed Jun 22, 2023
2 parents d605503 + 0bf0ae8 commit e798361
Show file tree
Hide file tree
Showing 20 changed files with 2,377 additions and 618 deletions.
3 changes: 3 additions & 0 deletions Source/shared/file_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ typedef struct {
#define REPLACE_FILE 0
#define APPEND_FILE 1

#define FILE_MODE 0
#define DIR_MODE 1

#define NOT_FORCE_IN_DIR 0
#define FORCE_IN_DIR 1

Expand Down
2 changes: 1 addition & 1 deletion Source/smokeview/IOslice.c
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ void ReadFed(int file_index, int time_frame, float *time_value, int flag, int fi
cb = GetColorbar(default_fed_colorbar);
if(cb!=NULL){
colorbartype=cb-colorbarinfo;
SetColorbarListIndex(colorbartype);
SetColorbarListEdit(colorbartype);
SliceBoundCB(COLORBAR_LIST2);
UpdateCurrentColorbar(cb);
}
Expand Down
1 change: 1 addition & 0 deletions Source/smokeview/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ void MouseEditColorbar(int x, int y){
GLubyte r, g, b;
colorbardata *cbi;

if(colorbar_hidescene==0)return; // don't edit colorbar with mouse if showing scene
if(show_firecolormap==0){
cbi = colorbarinfo + colorbartype;
}
Expand Down
Loading

0 comments on commit e798361

Please sign in to comment.