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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.103 by greg, Sun Apr 24 15:40:33 2022 UTC vs.
Revision 2.104 by greg, Sat Apr 30 15:13:42 2022 UTC

# Line 160 | Line 160 | rtrace(                                /* trace rays from file */
160                                          /* set up output */
161          if (castonly || every_out[0] != NULL)
162                  nproc = 1;              /* don't bother multiprocessing */
163 <        if (Tflag && every_out[0] != NULL)
164 <                trace_sources();        /* asking to trace light sources */
163 >        if (every_out[0] != NULL) {
164 >                trace = ourtrace;       /* enable full tree tracing */
165 >                if (Tflag)              /* light sources, too? */
166 >                        trace_sources();
167 >        }
168          if ((nextflush > 0) & (nproc > nextflush)) {
169                  error(WARNING, "reducing number of processes to match flush interval");
170                  nproc = nextflush;
# Line 251 | Line 254 | setrtoutput(void)                      /* set up output tables, return #c
254                          if (!vs[1]) break;
255                          *table = NULL;
256                          table = every_out;
254                        trace = ourtrace;
257                          castonly = 0;
258                          break;
259                  case 'o':                               /* origin */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines