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

Comparing ray/src/rt/pmapooc.c (file contents):
Revision 1.3 by rschregle, Wed Jan 24 19:39:05 2018 UTC vs.
Revision 1.4 by rschregle, Thu May 31 12:34:16 2018 UTC

# Line 256 | Line 256 | void OOC_FindPhotons (struct PhotonMap *pmap, const FV
256          
257     /* Set up filter callback */
258     filtData.pmap = pmap;
259 <   VCOPY(n, norm);
260 <   filtData.norm = n;
259 >   if (norm)
260 >      VCOPY(n, norm);
261 >   filtData.norm = norm ? n : NULL;
262     filt.data = &filtData;
263     filt.func = OOC_FilterPhoton;
264  
# Line 286 | Line 287 | void OOC_Find1Photon (struct PhotonMap* pmap, const FV
287    
288     /* Set up filter callback */
289     filtData.pmap = pmap;
290 <   VCOPY(n, norm);
291 <   filtData.norm = n;
290 >   if (norm)
291 >      VCOPY(n, norm);
292 >   filtData.norm = norm ? n : NULL;  
293     filt.data = &filtData;
294     filt.func = OOC_FilterPhoton;
295    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines