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.62 by greg, Mon Dec 14 07:31:37 2009 UTC vs.
Revision 2.63 by greg, Wed Dec 16 03:30:50 2009 UTC

# Line 160 | Line 160 | rtrace(                                /* trace rays from file */
160  
161                  d = normalize(direc);
162                  if (d == 0.0) {                         /* zero ==> flush */
163                        if (nproc > 1 && ray_fifo_flush() < 0)
164                                error(USER, "lost children");
165                        bogusray();
163                          if (--nextflush <= 0 || !vcount) {
164 +                                if (nproc > 1 && ray_fifo_flush() < 0)
165 +                                        error(USER, "lost children");
166 +                                bogusray();
167                                  fflush(stdout);
168                                  nextflush = hresolu;
169 <                        }
169 >                        } else
170 >                                bogusray();
171                  } else {                                /* compute and print */
172                          rtcompute(orig, direc, lim_dist ? d : 0.0);
173                                                          /* flush if time */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines