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.28 by greg, Thu Apr 28 00:24:43 2011 UTC vs.
Revision 2.29 by greg, Fri Jun 3 18:12:58 2011 UTC

# Line 169 | Line 169 | SDloadFile(SDData *sd, const char *fname)
169                                  /* try loading variable resolution data */
170          lastErr = SDloadTre(sd, wtl);
171                                  /* check our result */
172 <        switch (lastErr) {
173 <        case SDEformat:
174 <        case SDEdata:
175 <        case SDEsupport:        /* possibly we just tried the wrong format */
172 >        if (lastErr == SDEsupport)      /* try matrix BSDF if not tree data */
173                  lastErr = SDloadMtx(sd, wtl);
174 <                break;
178 <        default:                /* variable res. OK else serious error */
179 <                break;
180 <        }
174 >                
175                                  /* done with XML file */
176          ezxml_free(fl);
177          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines