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

Comparing ray/src/common/bsdf_t.c (file contents):
Revision 3.40 by greg, Mon Apr 6 18:28:35 2015 UTC vs.
Revision 3.41 by greg, Fri Apr 24 21:02:14 2015 UTC

# Line 569 | Line 569 | SDqueryTre(const SDTre *sdt, float *coef,
569                  return 0;               /* should be internal error */
570                                          /* get BSDF value */
571          yval = SDlookupTre(sdt->stc[tt_Y], gridPos, hc);
572        if (sdt->stc[tt_u] == NULL || sdt->stc[tt_v] == NULL) {
573                if (coef != NULL) *coef = yval;
574                return 1;               /* no color */
575        }
572          if (coef == NULL)               /* just getting hypercube? */
573                  return 1;
574 +        if ((sdt->stc[tt_u] == NULL) | (sdt->stc[tt_v] == NULL)) {
575 +                *coef = yval;
576 +                return 1;               /* no color */
577 +        }
578                                          /* else decode color */
579          SDyuv2rgb(yval, SDlookupTre(sdt->stc[tt_u], gridPos, NULL),
580                          SDlookupTre(sdt->stc[tt_v], gridPos, NULL), coef);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines