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.19 by greg, Thu Jul 7 15:25:09 2011 UTC vs.
Revision 3.20 by greg, Sun Aug 21 22:38:12 2011 UTC

# Line 622 | Line 622 | SDgetTreCDist(const FVECT inVec, SDComponent *sdc)
622                  return NULL;            /* should be internal error */
623          cdlast = NULL;                  /* check for direction in cache list */
624          for (cd = (SDTreCDst *)sdc->cdList; cd != NULL;
625 <                                cdlast = cd, cd = (SDTreCDst *)cd->next) {
625 >                                        cdlast = cd, cd = cd->next) {
626                  for (i = sdt->st->ndim - 2; i--; )
627                          if ((cd->clim[i][0] > inCoord[i]) |
628                                          (inCoord[i] >= cd->clim[i][1]))
# Line 634 | Line 634 | SDgetTreCDist(const FVECT inVec, SDComponent *sdc)
634                  cdlast = cd = make_cdist(sdt, inCoord);
635          if (cdlast != NULL) {           /* move entry to head of cache list */
636                  cdlast->next = cd->next;
637 <                cd->next = sdc->cdList;
637 >                cd->next = (SDTreCDst *)sdc->cdList;
638                  sdc->cdList = (SDCDst *)cd;
639          }
640          return (SDCDst *)cd;            /* ready to go */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines