46 |
|
2 { return 0 } |
47 |
|
} |
48 |
|
if $readonly { |
49 |
– |
.file invoke |
49 |
|
set curmess {Rename file or uncheck read-only to save.} |
50 |
+ |
.file invoke |
51 |
|
return 0 |
52 |
< |
} else { |
53 |
< |
catch {unset oldradvar} |
54 |
< |
save_vars $rifname |
55 |
< |
} |
52 |
> |
} elseif {[save_vars $rifname]} { |
53 |
> |
gotfile 1 |
54 |
> |
return 1 |
55 |
> |
} else { return 0 } |
56 |
|
} else { return 1 } |
57 |
|
} |
58 |
|
|
159 |
|
} |
160 |
|
} else { |
161 |
|
set mode disabled |
162 |
+ |
.file invoke |
163 |
|
} |
164 |
|
foreach b {scene zone views options action results} { |
165 |
|
.$b configure -state $mode |
169 |
|
# Decide where to go and start |
170 |
|
|
171 |
|
if {[llength $argv] == 0} { |
171 |
– |
gotfile 0 |
172 |
|
set curmess "Choose a Radiance project file." |
173 |
< |
.file invoke |
173 |
> |
gotfile 0 |
174 |
|
} elseif {[llength $argv] == 1} { |
175 |
|
cd [file dirname $argv] |
176 |
|
set curfile [file tail $argv] |
177 |
|
if {! [file exists $curfile]} { |
178 |
< |
newnew $argv |
178 |
> |
newnew $curfile |
179 |
|
.scene invoke |
180 |
|
} elseif {[newload $curfile]} { |
181 |
|
if $alldone { |