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

Comparing ray/src/util/bsdfview.pl (file contents):
Revision 2.1 by greg, Fri Aug 11 21:39:52 2017 UTC vs.
Revision 2.2 by greg, Sat Aug 12 01:31:29 2017 UTC

# Line 70 | Line 70 | $name =~ s{\.[^.]+$}{};                # remove file extension
70  
71   my $rif = "$name.rif";
72  
73 < die("bsdfview: will not overwrite existing file '$rif'\n") if (-e $rif);
73 > if (-e $rif) {                  # RIF already exists?
74 >        print "Attempting to run with existing rad input file '$rif'\n";
75 >        system "rad -o $raddev -w -v $vw $opts $rif QUA=$qual";
76 >        die("\nTry removing '$rif' and starting again\n\n") if $?;
77 >        exit;
78 > }
79  
80   print "bsdfview: creating rad input file '$rif'\n";
81  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines