| # | Line 135 | Line 135 | marksources(void) /* find and mark source objects */ | |
|---|---|---|
| 135 | source[ns].sflags |= SSKIP; | |
| 136 | } | |
| 137 | } | |
| 138 | – | #if SHADCACHE |
| 139 | – | initobscache(ns); |
| 140 | – | #endif |
| 138 | foundsource += !(source[ns].sflags & SSKIP); | |
| 139 | } | |
| 140 | if (!foundsource) { | |
| 141 | error(WARNING, "no light sources found"); | |
| 142 | return; | |
| 143 | } | |
| 144 | < | |
| 144 | > | #if SHADCACHE |
| 145 | > | for (ns = 0; ns < nsources; ns++) /* initialize obstructor cache */ |
| 146 | > | initobscache(ns); |
| 147 | > | #endif |
| 148 | /* PMAP: disable virtual sources */ | |
| 149 | if (!photonMapping) | |
| 150 | markvirtuals(); /* find and add virtual sources */ | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |