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.8 by greg, Tue Sep 1 16:27:53 2015 UTC vs.
Revision 2.9 by rschregle, Tue Sep 22 15:08:31 2015 UTC

# Line 534 | Line 534 | void getPhotonPorts ()
534     for (i = 0; i < nobjects; i++) {
535        obj = objptr(i);
536        
537 <      if (inset(ambset, obj -> omod)) {
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) &&
540 >          inset(ambset, objndx(findmaterial(obj)))) {
541           /* Add photon port */
542           photonPorts = (SRCREC*)realloc(photonPorts,
543                                          (numPhotonPorts + 1) *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines