# | Line 538 | Line 538 | void getPhotonPorts () | |
---|---|---|
538 | /* Check if object is a surface and NOT a light source (duh) and | |
539 | * resolve its material via any aliases, then check for inclusion in | |
540 | * port modifier list */ | |
541 | < | if (issurface(obj -> otype) && !islight(mat -> otype) && |
541 | > | if (issurface(obj -> otype) && mat && !islight(mat -> otype) && |
542 | inset(ambset, objndx(mat))) { | |
543 | /* Add photon port */ | |
544 | photonPorts = (SRCREC*)realloc(photonPorts, |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |