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.26 by greg, Sat Sep 29 21:18:20 2012 UTC vs.
Revision 3.27 by greg, Tue Apr 23 17:25:23 2013 UTC

# Line 1163 | Line 1163 | SDloadTre(SDData *sd, ezxml_t wtl)
1163                                          /* separate diffuse components */
1164          extract_diffuse(&sd->rLambFront, sd->rf);
1165          extract_diffuse(&sd->rLambBack, sd->rb);
1166 <        extract_diffuse(&sd->tLamb, (sd->tf != NULL) ? sd->tf : sd->tb);
1166 >        if (sd->tf != NULL)
1167 >                extract_diffuse(&sd->tLamb, sd->tf);
1168 >        if (sd->tb != NULL)
1169 >                extract_diffuse(&sd->tLamb, sd->tb);
1170                                          /* return success */
1171          return SDEnone;
1172   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines