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

Comparing ray/src/rt/srcobstr.c (file contents):
Revision 2.8 by greg, Wed Sep 8 17:10:16 2004 UTC vs.
Revision 2.9 by greg, Fri Sep 10 16:05:07 2004 UTC

# Line 309 | Line 309 | srcblocked(RAY *r)
309          if (obs == OVOID)
310                  return(0);
311          op = objptr(obs);               /* check for intersection */
312 <        return((*ofun[op->otype].funp)(op, r));
312 >        if (!(*ofun[op->otype].funp)(op, r))
313 >                return(0);
314 >        op = source[r->rsrc].so;        /* check source really obstructed */
315 >        if ((*ofun[op->otype].funp)(op, r)) {
316 >                rayclear(r);            /* actually, source in front! */
317 >                return(0);
318 >        }
319 >        return(1);                      /* source truly blocked */
320   }
321  
322  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines