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.15 by rschregle, Tue Mar 20 19:55:33 2018 UTC vs.
Revision 2.17 by greg, Thu Nov 8 00:54:07 2018 UTC

# Line 19 | Line 19 | static const char RCSid[] = "$Id$";
19   #include "pmap.h"
20   #include "pmaprand.h"
21   #include "otypes.h"
22 + #include "otspecial.h"
23  
24   /* List of photon port modifier names */
25   char *photonPortList [MAXSET + 1] = {NULL};
# Line 527 | Line 528 | void getPhotonPorts (char **portList)
528     OBJREC *obj, *mat;
529     char **lp;  
530    
531 <   /* Check for missing port modifiers */
531 >   /* Init photon port objects */
532 >   photonPorts = NULL;
533 >  
534     if (!portList [0])
535 <      error(USER, "no photon ports");
535 >      return;
536    
537     for (i = 0; i < nobjects; i++) {
538        obj = objptr(i);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines