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

Comparing ray/src/rt/m_bsdf.c (file contents):
Revision 2.76 by greg, Fri Jun 20 17:03:01 2025 UTC vs.
Revision 2.77 by greg, Fri Jun 20 18:05:30 2025 UTC

# Line 611 | Line 611 | sample_sdf(BSDFDAT *ndp, int sflags)
611                                  setscolor(unsc, b, b, b);
612                  }
613                  return(ntotal);
614 <        }
615 <        dimlist[ndims_inc] = (int)(size_t)ndp->mp;      /* else sample specular */
616 <        ndims_inc;
614 >        }                                       /* else sample specular */
615 >        dimlist[ndims_inc()] = (int)(size_t)ndp->mp;
616 >        ndims_inc();
617          for (n = dfp->ncomp; n--; ) {           /* loop over components */
618                  dimlist[ndims-1] = n + 9438;
619                  ntotal += sample_sdcomp(ndp, &dfp->comp[n], sflags==SDsampSpT);
620          }
621 <        dec_ndims; dec_ndims;
621 >        dec_ndims(); dec_ndims();
622          return(ntotal);
623   }
624  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines