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

Comparing ray/src/util/trad.wsh (file contents):
Revision 2.12 by greg, Thu Oct 5 13:16:22 1995 UTC vs.
Revision 2.15 by greg, Sat Feb 22 02:07:30 2003 UTC

# Line 1 | Line 1
1   #!/usr/local/bin/wish4.0
2 < # SCCSid "$SunId$ LBL"
2 > # RCSid: $Id$
3   #
4   # TCL/TK-based Rad Input File Editor
5   #
# Line 11 | Line 11 | set helplib $radlib
11  
12   set auto_path [linsert $auto_path 0 $radlib]
13  
14 + # Assign global globbing variables
15 +
16 + set myglob(rif) *.rif
17 + set myglob(materials) *.mat
18 + set myglob(illum) *.rad
19 + set myglob(scene) *.rad
20 + set myglob(objects) *
21 +
22   # Create required procedures
23  
24   proc modified {} {      # check for radvar modification
# Line 176 | Line 184 | if {[llength $argv] == 0} {
184   } elseif {[llength $argv] == 1} {
185          cd [file dirname $argv]
186          set curfile [file tail $argv]
187 <        if {! [file exists $curfile]} {
188 <                newnew $curfile
189 <                .scene invoke
187 >        if {! [file isfile $curfile]} {
188 >                if [newnew $curfile] {
189 >                        .scene invoke
190 >                } else {
191 >                        .file invoke
192 >                }
193          } elseif {[newload $curfile]} {
194                  if $alldone {
195                          set curmess "All renderings are finished."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines