39 |
|
|
40 |
|
proc oct_delete {} { # delete octree file |
41 |
|
global radvar curmess |
42 |
< |
if {"$radvar(OCTREE)" == {} || ! [file exists $radvar(OCTREE)]} { |
42 |
> |
if {"$radvar(OCTREE)" == {} || ! [file isfile $radvar(OCTREE)]} { |
43 |
|
set curmess {No octree file.} |
44 |
|
return |
45 |
|
} |
46 |
|
if [tk_dialog .dlg {Verification} \ |
47 |
|
"Really delete octree file $radvar(OCTREE)?" \ |
48 |
< |
questhead 1 {Delete} {Cancel}] { |
48 |
> |
questhead 0 {Delete} {Cancel}] { |
49 |
|
return 0 |
50 |
|
} |
51 |
|
if [catch {exec rm $radvar(OCTREE) < /dev/null} curmess] {return 0} |
56 |
|
proc getdepend {} { # get object dependencies |
57 |
|
global radvar curmess mybox |
58 |
|
set curmess "Please wait..." |
59 |
< |
update idletasks |
59 |
> |
update |
60 |
|
foreach newf [eval exec raddepend $radvar(illum) $radvar(scene)] { |
61 |
|
if {[lsearch -exact $radvar(objects) $newf] < 0} { |
62 |
|
lappend radvar(objects) $newf |