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.50 by greg, Sat Mar 27 17:50:18 2021 UTC vs.
Revision 3.51 by greg, Sat Mar 27 20:08:30 2021 UTC

# Line 1431 | Line 1431 | SDloadTre(SDData *sd, ezxml_t wtl)
1431          extract_diffuse(&sd->rLambFront, sd->rf);
1432          extract_diffuse(&sd->rLambBack, sd->rb);
1433          extract_diffuse(&sd->tLambFront, sd->tf);
1434 <        extract_diffuse(&sd->tLambBack, sd->tb);
1434 >        if (sd->tb != NULL) {
1435 >                extract_diffuse(&sd->tLambBack, sd->tb);
1436 >                if (sd->tf == NULL)
1437 >                        sd->tLambFront = sd->tLambBack;
1438 >        } else if (sd->tf != NULL)
1439 >                sd->tLambBack = sd->tLambFront;
1440                                          /* return success */
1441          return SDEnone;
1442   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines