--- ray/src/util/do_scene3.6.tcl 1994/12/06 15:54:43 2.6 +++ ray/src/util/do_scene3.6.tcl 1996/05/17 13:53:04 2.9 @@ -3,11 +3,6 @@ # Track octree and scene files # -set myglob(materials) *.mat -set myglob(illum) *.rad -set myglob(scene) *.rad -set myglob(objects) * - proc newfent f { # add file to our list global rifname radvar mybox myvar set rd [file dirname $rifname] @@ -39,13 +34,13 @@ proc lbgetf nm { # get list box files proc oct_delete {} { # delete octree file global radvar curmess - if {"$radvar(OCTREE)" == {} || ! [file exists $radvar(OCTREE)]} { + if {"$radvar(OCTREE)" == {} || ! [file isfile $radvar(OCTREE)]} { set curmess {No octree file.} return } if [tk_dialog .dlg {Verification} \ "Really delete octree file $radvar(OCTREE)?" \ - questhead 1 {Delete} {Cancel}] { + questhead 0 {Delete} {Cancel}] { return 0 } if [catch {exec rm $radvar(OCTREE) < /dev/null} curmess] {return 0}