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

Comparing ray/src/rt/source.c (file contents):
Revision 2.57 by greg, Thu Jul 17 18:26:01 2008 UTC vs.
Revision 2.58 by greg, Mon Aug 23 15:56:17 2010 UTC

# Line 306 | Line 306 | sourcehit(                     /* check to see if ray hit distant source
306                   * If it's a glow or transparent illum, just remember it.
307                   */
308                  if (source[i].sflags & SSKIP) {
309 <                        glowsrc = i;
309 >                        if (glowsrc < 0)
310 >                                glowsrc = i;
311                          continue;
312                  }
313                  if (transillum(source[i].so->omod)) {
314 <                        transrc = i;
314 >                        if (transrc < 0)
315 >                                transrc = i;
316                          continue;
317                  }
318                  r->ro = source[i].so;   /* otherwise, use first hit */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines