# | 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 376 | Line 374 | vstestvis( /* pretest source visibility */ | |
374 | sr.rorg[i] = oc[i] + offsdir[i] + d*onorm[i]; | |
375 | sr.rdir[i] = -onorm[i]; | |
376 | } | |
377 | + | sr.rmax = 0.0; |
378 | rayorigin(&sr, PRIMARY, NULL, NULL); | |
379 | } while (!(*ofun[o->otype].funp)(o, &sr)); | |
380 | /* check against source */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |