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.112 by greg, Tue May 26 10:00:47 2015 UTC vs.
Revision 2.114 by greg, Wed May 27 13:29:57 2015 UTC

# Line 401 | Line 401 | checkfiles(void)                       /* check for existence and modified
401                  atos(fntemp, sizeof(fntemp), vval(PCMAP));
402                  pcmapname = savqstr(fntemp);
403                  pcmapdate = fdate(pcmapname);
404                if (pgmapname == NULL && !nowarn)
405                        fprintf(stderr, "%s: '%s' assigned without '%s'\n",
406                                        progname, vnam(PCMAP), vnam(PGMAP));
404          }
405          matdate = checklast(vval(MATERIAL));
406   }      
# Line 659 | Line 656 | mkpmap(void)                   /* run mkpmap if indicated */
656                          else
657                                  badvalue(REPORT);
658                  }
659 <                if (vdef(PGMAP)) {
659 >                if (pgmapname != NULL && pgmapdate < oct1date) {
660                          cp = addarg(cp, "-apg");
661                          addarg(cp, vval(PGMAP));
662                          cp = sskip(sskip(cp));  /* remove any bandwidth */
663                          *cp = '\0';
664                  }
665 <                if (vdef(PCMAP)) {
665 >                if (pcmapname != NULL && pcmapdate < oct1date) {
666                          cp = addarg(cp, "-apc");
667                          addarg(cp, vval(PCMAP));
668                          cp = sskip(sskip(cp));  /* remove any bandwidth */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines