| # | Line 240 | Line 240 | static void nearestNeighbours (PhotonMap* pmap, const | |
|---|---|---|
| 240 | if (srcIdx < 0 || srcIdx >= nsources) | |
| 241 | error(INTERNAL, "invalid light source index in photon map"); | |
| 242 | ||
| 243 | < | srcMod = objptr(source [srcIdx].so -> omod); |
| 243 | > | srcMod = findmaterial(source [srcIdx].so); |
| 244 | ||
| 245 | /* Reject photon if contributions from light source which emitted it | |
| 246 | * are not sought */ | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |