6 |
|
set myglob(materials) *.mat |
7 |
|
set myglob(illum) *.rad |
8 |
|
set myglob(scene) *.rad |
9 |
< |
set myglob(objects) *.rad |
9 |
> |
set myglob(objects) * |
10 |
|
|
11 |
|
proc newfent f { # add file to our list |
12 |
|
global rifname radvar mybox myvar |
25 |
|
global myglob radvar mybox myvar curpat curmess |
26 |
|
set myvar $nm |
27 |
|
set oldnum [llength $radvar($nm)] |
28 |
< |
if [getfile -perm -glob $myglob($nm) -view view_txt -send newfent] { |
28 |
> |
if [getfile -grab -perm -glob $myglob($nm) -view view_txt -send newfent] { |
29 |
|
set curmess "Added [expr [llength $radvar($nm)] - $oldnum] entries." |
30 |
|
} elseif {[llength $radvar($nm)] > $oldnum} { |
31 |
|
set radvar($nm) [lreplace $radvar($nm) $oldnum end] |
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 |
142 |
|
place $w.oct -relwidth .5714 -relheight .0610 -relx .2143 -rely .0610 |
143 |
|
helplink $w.oct trad scene octree |
144 |
|
button $w.odel -text Delete -relief raised -command oct_delete |
145 |
< |
place $w.odel -relwidth .1071 -relheight .0610 -relx .8214 -rely .0610 |
145 |
> |
place $w.odel -relwidth .1071 -relheight .0610 -relx .8000 -rely .0610 |
146 |
|
helplink $w.odel trad scene octdelete |
147 |
|
# Materials listbox |
148 |
|
button $w.matb -text Materials -relief raised \ |
216 |
|
place $w.revert -relwidth .1071 -relheight .0610 -relx .98 -rely .98 \ |
217 |
|
-anchor se |
218 |
|
helplink $w.revert trad scene revert |
219 |
< |
button $w.copy -text Copy -relief raised -command {getfile \ |
219 |
> |
button $w.copy -text Copy -relief raised -command {getfile -grab \ |
220 |
|
-send copyscene -view view_txt -glob $rif_glob} |
221 |
|
place $w.copy -relwidth .1071 -relheight .0610 -relx .98 -rely .90 \ |
222 |
|
-anchor se |