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.27 by greg, Thu Feb 2 18:45:23 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 224 | Line 227 | ray_done(              /* free ray-tracing data */
227          donesets();
228          octdone();
229          thescene.cutree = EMPTY;
230 <        octname = NULL;
230 >        freeqstr(octname); octname = NULL;
231          retainfonts = 0;
232          if (freall) {
233                  freefont(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