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.113 by greg, Wed May 27 12:50:46 2015 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines