# | Line 11 | Line 11 | static const char RCSid[] = "$Id$"; | |
---|---|---|
11 | #include "copyright.h" | |
12 | ||
13 | #include "ray.h" | |
14 | – | |
14 | #include "otypes.h" | |
15 | < | |
15 | > | #include "otspecial.h" |
16 | #include "source.h" | |
18 | – | |
17 | #include "random.h" | |
18 | ||
19 | #define MINSAMPLES 16 /* minimum number of pretest samples */ | |
# | Line 141 | Line 139 | vsmaterial( /* get virtual source material pointer * | |
139 | OBJREC *m; | |
140 | ||
141 | i = o->omod; | |
142 | < | m = findmaterial(objptr(i)); |
142 | > | m = findmaterial(o); |
143 | if (m == NULL) | |
144 | return(objptr(i)); | |
145 | if (m->otype != MAT_ILLUM || m->oargs.nsargs < 1 || |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |