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

Comparing ray/src/rt/raytrace.c (file contents):
Revision 2.60 by greg, Sat Dec 12 00:03:42 2009 UTC vs.
Revision 2.61 by greg, Sun Sep 26 15:51:15 2010 UTC

# Line 512 | Line 512 | localhit(              /* check for hit in the octree */
512                  else if (r->rdir[i] < -1e-7)
513                          sflags |= 0x10 << i;
514          }
515 <        if (sflags == 0)
516 <                error(CONSISTENCY, "zero ray direction in localhit");
515 >        if (!sflags) {
516 >                error(WARNING, "zero ray direction in localhit");
517 >                return(0);
518 >        }
519                                          /* start off assuming nothing hit */
520          if (r->rmax > FTINY) {          /* except aft plane if one */
521                  r->ro = &Aftplane;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines