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.19 by greg, Fri Jun 10 20:44:00 2005 UTC vs.
Revision 1.20 by greg, Fri Jun 10 20:53:55 2005 UTC

# Line 468 | Line 468 | addmodfile(char *fname, char *outf, char *binv)
468   {
469          char    *mname[MAXMODLIST];
470          int     i;
471 <                                        /* load the file & store strings */
472 <        wordfile(mname, fname);
471 >                                        /* find the file & store strings */
472 >        if (wordfile(mname, getpath(fname, getrlibpath(), R_OK)) < 0) {
473 >                sprintf(errmsg, "cannot find modifier file '%s'", fname);
474 >                error(SYSTEM, errmsg);
475 >        }
476          for (i = 0; mname[i]; i++)      /* add each one */
477                  addmodifier(mname[i], outf, binv);
478   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines