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

Comparing ray/src/rt/RtraceSimulManager.cpp (file contents):
Revision 2.8 by greg, Thu May 2 22:10:43 2024 UTC vs.
Revision 2.9 by greg, Fri May 3 18:01:20 2024 UTC

# Line 222 | Line 222 | RtraceSimulManager::EnqueueBundle(const FVECT orig_dir
222          if (!UpdateMode())              // update rendering mode if requested
223                  return -1;
224  
225 +        if (rID0 && curFlags&RTdoFIFO)
226 +                error(INTERNAL, "Ray number assignment unsupported with FIFO");
227 +
228          while (n-- > 0) {               // queue each ray
229                  VCOPY(res.rorg, orig_direc[0]);
230                  VCOPY(res.rdir, orig_direc[1]);
231                  orig_direc += 2;
232                  rayorigin(&res, PRIMARY, NULL, NULL);
233 <                if (!rID0)
231 <                        res.rno = ++lastRayID;
232 <                else if (curFlags & RTdoFIFO)
233 <                        error(INTERNAL, "Ray number assignment unsupported with FIFO");
234 <                else
235 <                        res.rno = lastRayID = rID0++;
233 >                res.rno = rID0 ? (lastRayID = rID0++) : ++lastRayID;
234                  if (curFlags & RTimmIrrad)
235                          res.revf = rayirrad;
236                  else if (castonly)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines