# | 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); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |