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

Comparing ray/src/cv/bsdf2klems.c (file contents):
Revision 2.24 by greg, Fri Feb 17 22:31:49 2017 UTC vs.
Revision 2.25 by greg, Fri May 4 23:56:49 2018 UTC

# Line 602 | Line 602 | main(int argc, char *argv[])
602                                          add_wbsdf("-f", 1);
603                                          add_wbsdf(argv[i], 1);
604                                  } else {
605 <                                        fcompile(argv[i]);
605 >                                        char    *fpath = getpath(argv[i],
606 >                                                            getrlibpath(), 0);
607 >                                        if (fpath == NULL) {
608 >                                                fprintf(stderr,
609 >                                                "%s: cannot find file '%s'\n",
610 >                                                        argv[0], argv[i]);
611 >                                                return(1);
612 >                                        }
613 >                                        fcompile(fpath);
614                                          single_plane_incident = 0;
615                                  }
616                          } else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines