ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rtrace.c
(Generate patch)

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.31 by schorsch, Mon Jun 30 14:59:12 2003 UTC vs.
Revision 2.33 by schorsch, Mon Jul 21 22:30:19 2003 UTC

# Line 21 | Line 21 | static const char      RCSid[] = "$Id$";
21   *  irradiance values are desired.
22   */
23  
24 + #include  <time.h>
25 +
26   #include  "platform.h"
27   #include  "ray.h"
28   #include  "otypes.h"
# Line 283 | Line 285 | double dmax;
285          thisray.rmax = dmax;
286          rayorigin(&thisray, NULL, PRIMARY, 1.0);
287          if (castonly) {
288 <                if (!localhit(&thisray, &thescene))
288 >                if (!localhit(&thisray, &thescene)) {
289                          if (thisray.ro == &Aftplane) {  /* clipped */
290                                  thisray.ro = NULL;
291                                  thisray.rot = FHUGE;
292                          } else
293                                  sourcehit(&thisray);
294 +                }
295          } else
296                  rayvalue(&thisray);
297          printvals(&thisray);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines