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

Comparing ray/src/rt/pmapdata.c (file contents):
Revision 2.5 by greg, Wed May 20 14:44:12 2015 UTC vs.
Revision 2.6 by greg, Thu May 21 13:54:59 2015 UTC

# Line 240 | Line 240 | static void nearestNeighbours (PhotonMap* pmap, const
240        if (srcIdx < 0 || srcIdx >= nsources)
241           error(INTERNAL, "invalid light source index in photon map");
242        
243 <      srcMod = objptr(source [srcIdx].so -> omod);
243 >      srcMod = findmaterial(source [srcIdx].so);
244  
245        /* Reject photon if contributions from light source which emitted it
246         * are not sought */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines