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

Comparing ray/src/rt/source.c (file contents):
Revision 2.41 by greg, Fri Jan 9 05:37:11 2004 UTC vs.
Revision 2.42 by greg, Sun Jan 18 17:03:12 2004 UTC

# Line 544 | Line 544 | register RAY  *r
544   */
545  
546   static int
547 < weaksrcmat(int obj)             /* identify material */
547 > weaksrcmat(OBJECT obj)          /* identify material */
548   {
549 <        register OBJREC *o = objptr(obj);
549 >        OBJREC *o = findmaterial(objptr(obj));
550          
551 <        while (!ismaterial(o->otype))   /* find material */
552 <                o = objptr(o->omod);
551 >        if (o == NULL) return 0;
552          return((o->otype==MAT_ILLUM)|(o->otype==MAT_GLOW));
553   }
554  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines