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.76 by schorsch, Fri Mar 26 21:36:19 2004 UTC vs.
Revision 2.79 by greg, Mon Oct 4 04:42:33 2004 UTC

# Line 281 | Line 281 | checklast(                     /* check files and find most recent */
281                  return(0);
282          while ((fnames = nextword(thisfile, PATH_MAX, fnames)) != NULL) {
283                  if (thisfile[0] == '!' ||
284 <                                (thisfile[0] == '\\' && thisfile[1] == '!'))
284 >                                (thisfile[0] == '\\' && thisfile[1] == '!')) {
285 >                        if (!lastdate)
286 >                                lastdate = 1;
287                          continue;
288 +                }
289                  if (!(thisdate = fdate(thisfile)))
290                          syserr(thisfile);
291                  if (thisdate > lastdate)
# Line 469 | Line 472 | static void
472   oconv(void)                             /* run oconv and mkillum if necessary */
473   {
474          static char     illumtmp[] = "ilXXXXXX";
475 <        char    combuf[PATH_MAX], ocopts[64], mkopts[64];
475 >        char    combuf[PATH_MAX], ocopts[64], mkopts[1024];
476  
477          oconvopts(ocopts);              /* get options */
478          if (octreedate < scenedate) {   /* check date on original octree */
# Line 596 | Line 599 | oconvopts(                             /* get oconv options */
599  
600   static void
601   mkillumopts(                            /* get mkillum options */
602 <        register char   *mo
602 >        char    *mo
603   )
604   {
605          /* BEWARE:  This may be called via setdefaults(), so no assumptions */
606  
607 <        *mo = '\0';
607 >        if (nprocs > 1) {
608 >                sprintf(mo, " -n %d", nprocs);
609 >                while (*mo)
610 >                        mo++;
611 >        } else
612 >                *mo = '\0';
613          if (vdef(MKILLUM))
614                  addarg(mo, vval(MKILLUM));
615   }
# Line 1307 | Line 1315 | rpict(                         /* run rpict and pfilt for each view */
1315                                          zopt, oct1name, rawfile);
1316                          if (pfile != NULL && inchild()) {
1317                                                  /* rpict persistent mode */
1318 <                                if (!silent)
1318 >                                if (!silent) {
1319                                          printf("\t%s\n", combuf);
1320 +                                        fflush(stdout);
1321 +                                }
1322                                  sprintf(combuf, "rpict%s %s %s%s%s %s > %s",
1323                                                  rep, rppopt, res, po, opts,
1324                                                  oct1name, rawfile);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines