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.27 by greg, Wed Apr 24 16:27:56 1996 UTC vs.
Revision 2.28 by greg, Fri Mar 7 16:58:54 1997 UTC

# Line 96 | Line 96 | register RAY  *r;
96   {
97          r->rno = raynum++;
98          r->newcset = r->clipset;
99 +        r->robj = OVOID;
100          r->ro = NULL;
101          r->rot = FHUGE;
102          r->pert[0] = r->pert[1] = r->pert[2] = 0.0;
# Line 554 | Line 555 | OBJECT  *cxs;
555          checkset(oset, cxs);                    /* eliminate double-checking */
556          for (i = oset[0]; i > 0; i--) {
557                  o = objptr(oset[i]);
558 <                (*ofun[o->otype].funp)(o, r);
558 >                if ((*ofun[o->otype].funp)(o, r))
559 >                        r->robj = oset[i];
560          }
561          if (r->ro == NULL)
562                  return(0);                      /* no scores yet */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines