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

Comparing ray/src/common/bsdf.c (file contents):
Revision 2.34 by greg, Thu Jul 7 15:25:09 2011 UTC vs.
Revision 2.36 by greg, Sat Sep 17 22:09:33 2011 UTC

# Line 171 | Line 171 | SDloadFile(SDData *sd, const char *fname)
171          }
172                                  /* load geometry if present */
173          lastErr = SDloadGeometry(sd, ezxml_child(wtl, "Material"));
174 <        if (lastErr)
174 >        if (lastErr) {
175 >                ezxml_free(fl);
176                  return lastErr;
177 +        }
178                                  /* try loading variable resolution data */
179          lastErr = SDloadTre(sd, wtl);
180                                  /* check our result */
# Line 423 | Line 425 | SDsampComponent(SDValue *sv, FVECT ioVec, double randX
425          cd = (*sdc->func->getCDist)(inVec, sdc);
426          if (cd == NULL)
427                  return SDEmemory;
428 <        if (cd->cTotal <= 1e-7) {       /* anything to sample? */
428 >        if (cd->cTotal <= 1e-6) {       /* anything to sample? */
429                  sv->spec = c_dfcolor;
430                  sv->cieY = .0;
431                  memset(ioVec, 0, 3*sizeof(double));
# Line 685 | Line 687 | SDsampBSDF(SDValue *sv, FVECT ioVec, double randX, int
687                  }
688                  sv->cieY += cdarr[i]->cTotal;
689          }
690 <        if (sv->cieY <= 1e-7) {         /* anything to sample? */
690 >        if (sv->cieY <= 1e-6) {         /* anything to sample? */
691                  sv->cieY = .0;
692                  memset(ioVec, 0, 3*sizeof(double));
693                  return SDEnone;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines