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.32 by greg, Mon Mar 17 01:53:51 2014 UTC vs.
Revision 3.33 by greg, Fri Mar 21 17:49:53 2014 UTC

# Line 849 | Line 849 | load_values(char **spp, float *va, int n)
849          char    *svnext;
850  
851          while (n-- > 0 && (svnext = fskip(*spp)) != NULL) {
852 <                *v++ = atof(*spp);
852 >                if ((*v++ = atof(*spp)) < 0)
853 >                        v[-1] = 0;
854                  *spp = svnext;
855                  eat_token(spp, ',');
856          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines