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

Comparing ray/src/util/dctimestep.c (file contents):
Revision 2.7 by greg, Sun Jun 21 21:42:12 2009 UTC vs.
Revision 2.8 by greg, Sun Jun 21 21:49:13 2009 UTC

# Line 299 | Line 299 | cm_bsdf(const struct BSDF_data *bsdf)
299          int     nneg = 0;
300          int     r, c;
301          
302 <        for (c = 0; c < cm->ncols; c++, mp += 3) {
302 >        for (c = 0; c < cm->ncols; c++) {
303                  float   dom = getBSDF_incohm(bsdf,c);
304                  FVECT   v;
305                  
# Line 316 | Line 316 | cm_bsdf(const struct BSDF_data *bsdf)
316  
317                          if (f <= .0) {
318                                  nneg += (f < -FTINY);
319 <                                continue;
319 >                                f = .0f;
320                          }
321 +                        mp = cm_lval(cm,r,c);
322                          mp[0] = mp[1] = mp[2] = f * dom;
323                  }
324          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines