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

Comparing ray/src/util/wrapBSDF.c (file contents):
Revision 2.18 by greg, Tue Feb 2 22:34:00 2016 UTC vs.
Revision 2.19 by greg, Wed Feb 3 00:22:55 2016 UTC

# Line 613 | Line 613 | writeBSDF(const char *caller, ezxml_t fl)
613                  if (data_file[i].fname != stdin_name &&
614                                  data_file[i].fname[0] != '!')
615                          unlink(data_file[i].fname);
616 +        if (unlink_datafiles > 1 && mgf_geometry != NULL &&
617 +                        mgf_geometry != stdin_name &&
618 +                        mgf_geometry[0] != '!')
619 +                unlink(mgf_geometry);
620          return 1;
621   }
622  
# Line 778 | Line 782 | main(int argc, char *argv[])
782                          attr_unit = argv[i];
783                          continue;
784                  case 'U':               /* unlink data files when done */
785 <                        unlink_datafiles = 1;
785 >                        unlink_datafiles = 1 + (argv[i][2] == 'U');
786                          continue;
787                  case 'a':               /* angle basis */
788                          if (++i >= argc)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines