ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rad.c
(Generate patch)

Comparing ray/src/util/rad.c (file contents):
Revision 2.21 by greg, Tue Aug 24 22:14:21 1993 UTC vs.
Revision 2.22 by greg, Wed Aug 25 13:48:37 1993 UTC

# Line 117 | Line 117 | char   *viewselect = NULL;     /* specific view only */
117   int     overture = 0;           /* overture calculation needed */
118  
119   char    *progname;              /* global argv[0] */
120 + char    *rifname;               /* global rad input file name */
121  
122   char    radname[MAXPATH];       /* root Radiance file name */
123  
# Line 155 | Line 156 | char   *argv[];
156                  }
157          if (i >= argc)
158                  goto userr;
159 +        rifname = argv[i];
160                                  /* assign Radiance root file name */
161 <        rootname(radname, argv[i]);
161 >        rootname(radname, rifname);
162                                  /* load variable values */
163 <        load(argv[i]);
163 >        load(rifname);
164                                  /* get any additional assignments */
165          for (i++; i < argc; i++)
166                  setvariable(argv[i]);
# Line 1067 | Line 1069 | char   *opts;
1069                  return;
1070          if (sayview)
1071                  printview(vw);
1072 <        sprintf(combuf, "rview %s%s ", vw, opts);
1072 >        sprintf(combuf, "rview %s%s -R %s ", vw, opts, rifname);
1073          if (rvdevice != NULL)
1074                  sprintf(combuf+strlen(combuf), "-o %s ", rvdevice);
1075          strcat(combuf, vval(OCTREE));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines