ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/source.c
(Generate patch)

Comparing ray/src/rt/source.c (file contents):
Revision 2.64 by greg, Tue Feb 24 19:39:27 2015 UTC vs.
Revision 2.66 by greg, Thu May 28 09:13:19 2015 UTC

# 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 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines