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

# Line 759 | Line 759 | SDgetMtxCDist(const FVECT inVec, SDComponent *sdc)
759          }
760          cdlast = NULL;                  /* check for it in cache list */
761          for (cd = (SDMatCDst *)sdc->cdList; cd != NULL;
762 <                                cdlast = cd, cd = (SDMatCDst *)cd->next)
762 >                                        cdlast = cd, cd = cd->next)
763                  if (cd->indx == myCD.indx && (cd->calen == myCD.calen) &
764                                          (cd->ob_priv == myCD.ob_priv) &
765                                          (cd->ob_vec == myCD.ob_vec))
# Line 778 | Line 778 | SDgetMtxCDist(const FVECT inVec, SDComponent *sdc)
778          }
779          if (cdlast != NULL) {           /* move entry to head of cache list */
780                  cdlast->next = cd->next;
781 <                cd->next = sdc->cdList;
781 >                cd->next = (SDMatCDst *)sdc->cdList;
782                  sdc->cdList = (SDCDst *)cd;
783          }
784          return (SDCDst *)cd;            /* ready to go */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines