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

Comparing ray/src/util/rtcontrib.c (file contents):
Revision 1.17 by greg, Fri Jun 10 16:42:11 2005 UTC vs.
Revision 1.19 by greg, Fri Jun 10 20:44:00 2005 UTC

# Line 16 | Line 16 | static const char RCSid[] = "$Id$";
16   #include  "lookup.h"
17   #include  "calcomp.h"
18  
19 + #ifndef MAXMODLIST
20   #define MAXMODLIST      1024            /* maximum modifiers we'll track */
21 + #endif
22  
23   int     treebufsiz = BUFSIZ;            /* current tree buffer size */
24  
# Line 72 | Line 74 | struct rtproc {
74   };                              /* rtrace process buffer */
75  
76                                          /* rtrace command and defaults */
77 < char            *rtargv[256] = { "rtrace", "-dj", ".5", "-dr", "3",
77 > char            *rtargv[256+2*MAXMODLIST] = { "rtrace",
78 >                                "-dj", ".5", "-dr", "3",
79                                  "-ab", "1", "-ad", "128", };
80   int  rtargc = 9;
81                                          /* overriding rtrace options */
# Line 260 | Line 263 | main(int argc, char *argv[])
263                                  continue;
264                          case 'M':               /* modifier file */
265                                  if (argv[i][2] || i >= argc-1) break;
266 <                                addmodfile(argv[++i], curout, binval);
266 >                                rtargv[rtargc++] = "-tI";
267 >                                rtargv[rtargc++] = argv[++i];
268 >                                addmodfile(argv[i], curout, binval);
269                                  continue;
270                          }
271                  rtargv[rtargc++] = argv[i];     /* assume rtrace option */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines