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

Comparing ray/src/rt/raycalls.c (file contents):
Revision 2.28 by greg, Thu Feb 2 18:55:09 2023 UTC vs.
Revision 2.30 by greg, Thu May 2 15:02:08 2024 UTC

# Line 183 | Line 183 | ray_init(                      /* initialize ray-tracing calculation */
183                  initotypes();
184                                          /* initialize urand */
185          reset_random();
186 +                                        /* initialize spectral sampling */
187 +        if (setspectrsamp(CNDX, WLPART) < 0)
188 +                error(USER, "unsupported spectral sampling");
189  
190          octname = savqstr(otnm);        /* read scene octree */
191          readoct(octname, ~(IO_FILES|IO_INFO), &thescene, NULL);
# Line 347 | Line 350 | ray_restore(                   /* restore parameter settings */
350          ambincl = rp->ambincl;
351                                          /* update ambient calculation */
352          ambnotify(OVOID);
353 <        if (thescene.cutree != EMPTY) {
353 >        if ((thescene.cutree != EMPTY) & !castonly) {
354                  int     newamb = (ambfile == NULL) ?  rp->ambfile[0] :
355                                          strcmp(ambfile, rp->ambfile) ;
356  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines