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

Comparing ray/src/util/rmtxop.c (file contents):
Revision 2.29 by greg, Sun Dec 3 03:44:42 2023 UTC vs.
Revision 2.30 by greg, Fri Dec 8 00:12:31 2023 UTC

# Line 69 | Line 69 | checkreffile(ROPMAT *rop)
69                  fclose(fp);
70                  curRF = rop->preop.csym;
71          }
72 <        if ((refm.ncomp == 3) & (refm.dtype != DTspec)) {
72 >        if (refm.ncomp == 3) {
73                  rop->preop.csym = (refm.dtype == DTxyze) ? "XYZ" : "RGB";
74                  return(checksymbolic(rop));
75          }
# Line 245 | Line 245 | checksymbolic(ROPMAT *rop)
245          } else if (!strcmp(rop->preop.csym, "RGB")) {
246                  if (dt <= DTspec)
247                          return(DTrgbe);
248 <        }
249 <        if ((nc > 3) & (dt <= DTspec))
248 >        } else if (dt == DTspec)
249                  return(DTfloat);        /* probably not actual spectrum */
250          return(0);
251   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines