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