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.19 by greg, Thu Jan 21 17:47:07 2021 UTC vs.
Revision 2.20 by greg, Wed Mar 23 00:58:35 2022 UTC

# Line 38 | Line 38 | int    verbose = 0;                    /* verbose reporting? */
38   static int
39   loadmatrix(ROPMAT *rop)
40   {
41 <        if (rop->mtx != NULL)
41 >        if (rop->mtx != NULL)           /* already loaded? */
42                  return(0);
43  
44          rop->mtx = rmx_load(rop->inspec, rop->rmp);
# Line 239 | Line 239 | op_right2left(ROPMAT *mop)
239          while (rpos-- > 0) {
240                  if (mright == NULL)
241                          break;
242 <                mright = binaryop(mop[rpos].inspec,
242 >                mright = binaryop(mop[rpos+1].inspec,
243                                  loadop(mop+rpos), mop[rpos].binop, mright);
244          }
245          return(mright);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines