# | 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 | > | initobscache(ns); |
146 | > | #endif |
147 | /* PMAP: disable virtual sources */ | |
148 | if (!photonMapping) | |
149 | markvirtuals(); /* find and add virtual sources */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |