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

Comparing ray/src/rt/pmapsrc.c (file contents):
Revision 2.9 by rschregle, Tue Sep 22 15:08:31 2015 UTC vs.
Revision 2.10 by rschregle, Tue Sep 29 18:16:34 2015 UTC

# Line 534 | Line 534 | void getPhotonPorts ()
534     for (i = 0; i < nobjects; i++) {
535        obj = objptr(i);
536        
537 <      /* Check if object is a surface and resolve its material via any
538 <       * aliases, then check for inclusion in port modifier list */
539 <      if (issurface(obj -> otype) &&
537 >      /* Check if object is a surface and NOT a light source (duh) and
538 >       * resolve its material via any aliases, then check for inclusion in
539 >       * port modifier list */
540 >      if (issurface(obj -> otype) && !islight(obj -> otype) &&
541            inset(ambset, objndx(findmaterial(obj)))) {
542           /* Add photon port */
543           photonPorts = (SRCREC*)realloc(photonPorts,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines