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

Comparing ray/src/rt/RpictSimulManager.cpp (file contents):
Revision 2.10 by greg, Sun Aug 25 17:24:48 2024 UTC vs.
Revision 2.11 by greg, Tue Aug 27 18:50:01 2024 UTC

# Line 580 | Line 580 | RpictSimulManager::RenderBelow(int ytop, const int vst
580                                                  1., double(ytop)/GetHeight()))
581                  ptvw.type = 0;
582                                                  // update spectral sampling
583 <        if (setspectrsamp(CNDX, WLPART) <= 0) {
583 >        int     rv = setspectrsamp(CNDX, WLPART);
584 >        if (rv < 0) {
585                  error(USER, "unsupported spectral sampling");
586                  return false;
587          }
588 +        if (!rv & (RDTcolorT(dt) != RDTscolor) & (RDTcolorT(dt) != RDTscolr))
589 +                error(WARNING, "spectral range incompatible with color output");
590          COLORV **       parr = NULL;            // set up tiny source drawing
591          float **        zarr = NULL;
592          if (!ptvw.type && directvis && dblur <= FTINY) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines