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

Comparing ray/src/common/bsdf_m.c (file contents):
Revision 3.25 by greg, Sun Apr 21 22:58:40 2013 UTC vs.
Revision 3.26 by greg, Tue Apr 23 17:25:23 2013 UTC

# Line 602 | Line 602 | SDloadMtx(SDData *sd, ezxml_t wtl)
602                                          /* separate diffuse components */
603          extract_diffuse(&sd->rLambFront, sd->rf);
604          extract_diffuse(&sd->rLambBack, sd->rb);
605 <        extract_diffuse(&sd->tLamb, (sd->tf != NULL) ? sd->tf : sd->tb);
605 >        if (sd->tf != NULL)
606 >                extract_diffuse(&sd->tLamb, sd->tf);
607 >        if (sd->tb != NULL)
608 >                extract_diffuse(&sd->tLamb, sd->tb);
609                                          /* return success */
610          return SDEnone;
611   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines