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

Comparing ray/src/rt/initotypes.c (file contents):
Revision 2.24 by greg, Sat Nov 10 15:37:20 2018 UTC vs.
Revision 2.25 by greg, Sat Nov 10 16:12:26 2018 UTC

# Line 119 | Line 119 | findmaterial(OBJREC *o)
119                          if ((ao = findmaterial(objptr(aobj))) != NULL)
120                                  return(ao);
121                  }
122 +                if (o->omod == OVOID) {
123                                  /* assume unmodified mixture is material */
124 <                if (o->omod == OVOID)
125 <                        return(ismixture(o->otype) ? o : (OBJREC *)NULL);
124 >                        if (ismixture(o->otype))
125 >                                break;
126 >                        return(NULL);
127 >                }
128                  o = objptr(o->omod);
129          }
130 <        return(o);              /* XXX: material mixtures will return NULL */
130 >        return(o);
131   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines