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

Comparing ray/src/cv/bsdf2ttree.c (file contents):
Revision 2.42 by greg, Thu Jan 4 23:28:54 2018 UTC vs.
Revision 2.43 by greg, Fri May 4 23:56:49 2018 UTC

# Line 633 | Line 633 | main(int argc, char *argv[])
633                                  if (strchr(argv[++i], '=') != NULL) {
634                                          add_wbsdf("-f", 1);
635                                          add_wbsdf(argv[i], 1);
636 <                                } else
637 <                                        fcompile(argv[i]);
636 >                                } else {
637 >                                        char    *fpath = getpath(argv[i],
638 >                                                            getrlibpath(), 0);
639 >                                        if (fpath == NULL) {
640 >                                                fprintf(stderr,
641 >                                                "%s: cannot find file '%s'\n",
642 >                                                        argv[0], argv[i]);
643 >                                                return(1);
644 >                                        }
645 >                                        fcompile(fpath);
646 >                                        single_plane_incident = 0;
647 >                                }
648                          } else
649                                  dofwd = (argv[i][0] == '+');
650                          break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines